Description Usage Arguments Details Value See Also
This is a utility function that employs code generation to produce R code that formats data.
1 | generate_formatting_code(metadata, dataset_name = "data")
|
metadata |
REDCap metadata |
dataset_name |
Name of the dataset that will be recorded in place. |
Using the redcap metadata, code is generated that formats data.
It recodes categorical data to factors.
This makes it easier to perform traditional statistical analysis which often expects coded categorical variables as input.
Code that can be evaluated to format data.
Other Code Generators: generate_data_validation_code
,
generate_error_report_code
;
generate_date_conversion_code
;
generate_remove_missing_code
;
generate_remove_outliers_code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.