9
Suppose I have the following vector, with the names of presidents of the republic:
presidentes <- c("da Fonseca, DeodoroDeodoro da Fonseca",
"Peixoto, FlorianoFloriano Peixoto", "de Morais, PrudentePrudente de Morais",
"Sales, CamposCampos Sales")
I would like to format this vector so that it is possible to directly read each president’s name:
"Deodoro da Fonseca" "Floriano Peixoto" "Prudente de Morais" "Campos Sales"
I imagine there’s some regular expression that does this, but I can’t build it.
It worked perfectly, Daniel. Thank you.
– Marcus Nunes