convert_dates: converts date fields from ISO character string format to R...

View source: R/utils.R

convert_datesR Documentation

converts date fields from ISO character string format to R Date format

Description

Date fields are determined by the date-fields element in the .ehr definition. Extra date fields can be added to the extras argument or by setting '.ehr$date_fields'.

Usage

convert_dates(dat, extras = NULL)

Arguments

dat

a dataframe

extras

= a character vector of extra columns to convert or NULL for no extras

See Also

get_EHR_value set_EHR_value


rOpenHealth/rEHR documentation built on Sept. 25, 2024, 5:32 p.m.