This is a utility function that employs code generation to produce R code for data recoding purposes.
generate_date_conversion_code(metadata, dataset_name = "data")
Name of the dataset that will be recorded in place.
Using the redcap metadata, code is generated that converts character dates to R Date variables.
This can come in handy when using the data for date-based operations such as subsetting or panel data analysis.
Code that can be evaluated to recode apppropriate strings to R dates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.