How to change elements in a data frame?