I have a very basic R question but I am having a hard time trying to get the right answer. I have a data frame that looks like this:
R
ind<-re
I arrived here from a google search, since my other code is 'tidy' so leaving the 'tidy' way for anyone who else who may find it useful
library(dplyr) iris %>% mutate(Species = ifelse(as.character(Species) == "virginica", "newValue", as.character(Species)))