How to mutate rows of data frame - replacing one value with another
- by rhh
I'm having trouble with what I think is a basic R task.
Here's my sample dataframe named 'b'
Winner Color Size
Tom Yellow Med
Jerry Yellow Lar
Jane Blue Med
where items in the Winner column are factors.
I'm trying to change "Tom" in the dataframe to "Tom LLC" and I can't get it done.
Here's what I tried:
Simple way:
b$winner[b$winner=='Tom']…