exclusion of a column element in a dataframe

Asked

Viewed 23 times

1

Hello,

I have the following dataframe:

 Município (Código)                  Município  Valor
2            1100015 Alta Floresta D'Oeste - RO 408765
3            1100023             Ariquemes - RO 477322
4            1100031                Cabixi - RO 126630
5            1100049                Cacoal - RO 463570
6            1100056            Cerejeiras - RO  96654
7            1100064     Colorado do Oeste - RO 266464

and I need to exclude the Ufs from the Municipalities column, therefore, I need my dataframe to look like this:

 Município (Código)            Município        Valor
2            1100015  Alta Floresta D'Oeste     408765
3            1100023             Ariquemes      477322
4            1100031                Cabixi      126630
5            1100049                Cacoal      463570
6            1100056            Cerejeiras      96654
7            1100064     Colorado do Oeste      266464

How do I do this kind of manipulation in R?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.