% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modifyData.R \name{remapVariable} \alias{remapVariable} \title{Remap/change value of variable according to a lookup table} \usage{ remapVariable(df, origVar, mapVar, valueMap, num = TRUE) } \arguments{ \item{df}{data frame} \item{origVar}{name of original variable} \item{mapVar}{name of variable with updated values} \item{valueMap}{mapping of variables from old to new, named list where names() are values to be found in data frame and values() contain new values} \item{num}{ensure output value is numeric} } \value{ data frame with updated column } \description{ Remap/change value of variable according to a lookup table }