| fieldToVar | R Documentation | 
Converts a field exported from REDCap into a valid R vector
fieldToVar(
  records,
  meta_data,
  factors = TRUE,
  dates = TRUE,
  checkboxLabels = FALSE,
  labels = TRUE,
  handlers = list(),
  mChoice = NULL,
  ...
)
| records | A data frame of records returned by  | 
| meta_data | A data frame giving the data dictionary, as returned
by  | 
| factors | Logical, determines if checkbox, radio button, dropdown and yesno variables are converted to factors | 
| dates | Logical, determines if date variables are converted to POSIXct format | 
| checkboxLabels | Logical, determines if checkbox variables are labeled as
"Checked" or using the checkbox label.  Only applicable when  | 
| labels | Logical. Determines if the variable labels are applied to the data frame. | 
| handlers | List, Specify type conversion overrides for specific REDCap field types.
E.g.,  | 
| mChoice | logical; defaults to TRUE. Convert checkboxes to mChoice if Hmisc is installed. | 
| ... | additional arguments that are ignored. | 
This function is called internally by exportRecords and
exportReports.  it is not available to the user.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.