set_derived_variables.RdTakes labels from the Derived Variables excel file and applies them to the passed data frame. The function is meant to be used in the pipe.
set_derived_variables(data, path, sheet = NULL, drop = TRUE)Data frame
Path to Derived Variables xls/xlsx file
Sheet to read. Either a string (the name of a sheet), or an
integer (the position of the sheet). Ignored if the sheet is specified via
range. If neither argument specifies the sheet, defaults to the first
sheet.
Logical indicating whether to drop unlabelled variables