GenerateCodeForDateCasting: Autogenerate code for date conversion from valid string date...

Description Usage Arguments Details Value See Also

Description

This is a utility function that employs code generation to produce R code for data recoding purposes.

Usage

1
generate_date_conversion_code(metadata, dataset_name = "data")

Arguments

metadata

REDCap metadata

dataset_name

Name of the dataset that will be recorded in place.

Details

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.

Value

Code that can be evaluated to recode apppropriate strings to R dates

See Also

Other Code Generators: generate_data_validation_code, generate_error_report_code; generate_formatting_code; generate_remove_missing_code; generate_remove_outliers_code


bonmac/RedcapData documentation built on May 11, 2017, 1:34 p.m.