This function is specifically tailored to the way the default import script
provided by a Redcap database functions. First, the
Hmisc package is loaded.
The .csv file containing the data is assumed to be located in the current working directory.
Labels are assigned to all variables. Variables which are supposed to be factors are twice,
once as a factor and once in an unformatted way.
(character) Path to the (automatically generated) redcap script for data import
This script removes the "unformatted factor" variables and properly assignes labels.
tibble with data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.