View source: R/formatting_functions.R
format_variables | R Documentation |
Converts a field exported from REDCap into a valid R vector
format_variables(record_data, data_dict, factor_labels = TRUE, dates = TRUE)
record_data |
A data frame of records returned by |
data_dict |
A data frame giving the data data_dictionary, as returned
by |
factor_labels |
Logical, determines if checkbox, radio button, dropdown and yesno variables are labelled. |
dates |
Logical, determines if date variables are converted to POSIXct format |
Jeffrey Horner
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.