Skip to contents

works faster than fast.date

Usage

faster_date(dt, dateCol = "Date")

Arguments

dt

# data table

dateCol

# date column name

Examples

 exampleDataR = data.table::as.data.table(exampleDataR)
exampleDataR = exampleDataR[,dateformat:= date_mdy_ymd(date)]
#> Error in date_mdy_ymd(date): could not find function "date_mdy_ymd"
faster_date(exampleDataR,"dateformat")
#> Error in data.table::setnames(dt, dateCol_a, "SuperDummyDate"): Items of 'old' not found in column names: [dateformat]. Consider skip_absent=TRUE.