make_dates: Converts Variable to Date Type

Description Usage Arguments Value Examples

View source: R/jigsaw.R

Description

Converts all date columns to date format (in place via data.table). Uses the data.table IDate class which his much faster than the base as.Date() function. IDate is still recognized as an R date class. Note that this function needs to be improved to take advantage of attributes or classes. This is intended to run as part of load_data().

Usage

1
make_dates(dt = NULL, dd = data_dict)

Arguments

dt

The data table in which to convert date columns

dd

The data dictionary with variable types to identify date columns

Value

Variable(s) converted to an R date class

Examples

1
## Not run: # nothing here yet

outcomesinsights/jigsaw_r documentation built on May 24, 2019, 5:54 p.m.