Convert left/right variables to an average measurement

mapLRAverageVar(
  mydataframe,
  leftvar,
  leftname = "left",
  rightname = "right",
  replacer = "LRAVG"
)

Arguments

mydataframe

dataframe containing relevant variables

leftvar

left side variable names ie the full names of the variables to average

leftname

the variable substring indicating left side

rightname

the variable substring indicating right side

replacer

string to replace left with in column names of output

Value

fixed x

Author

Avants BB