Helper function: rename values

renameValues(df, colName, oldVal, newVal)

Arguments

df

data.frame to be modified

colName

olName containing the values to be changed

oldVal

old value

newVal

new value