Convert left/right variables to an average measurement
mapLRAverageVar(
mydataframe,
leftvar,
leftname = "left",
rightname = "right",
replacer = "LRAVG"
)
dataframe containing relevant variables
left side variable names ie the full names of the variables to average
the variable substring indicating left side
the variable substring indicating right side
string to replace left with in column names of output
fixed x