[r] Replace contents of factor column in R dataframe