r change a dataframe column as object code example Example: r chage the value of under certain characteristics deck3$value[deck3$face == "ace"] <- 14 #or