assign_var_label: Assigns variable label to display.
Description
Preference is given to labels specified in fmt_table1(..., var_label = list())
argument, then to a label attribute attached to the data frame
(i.e. attr(data$var, "label)), then to the variable name.
Usage
assign_var_label(data, variable, var_label)
Arguments
data
Data frame.
variable
Vector of column name.
var_label
list that includes specified variable labels,
e.g. var_label = list(age = "Age, yrs")