LuísA
LuísA

Reputation: 59

How to change the value in a group of cells?

I'm wondering if it is possible to change the contents of multiple cells in a table using R?

Consider this example: Example

I need to change the values 'Femini.' to 'Feminine'. The problem is that i have a great number of cells to change... Is there some command that help me doing this?

Thanks for the help, Luís

Upvotes: 1

Views: 175

Answers (1)

user2510479
user2510479

Reputation: 1540

Say your dataframe is called df

df$Genre[df$Genre == 'Femini'] <- 'Feminine'

Upvotes: 1

Related Questions