convert.dates: Convert all columns with "date" in col names to Date format.

Description Usage Arguments Details

Description

Convert all columns with "date" in col names to Date format.

Usage

1
convert.dates(dt, additional.cols = NULL, format = "%Y-%m-%d")

Arguments

dt

Data table.

additional.cols

Additional date columns to be parsed other than columns with the string "date".

Details

convert.dates automatically finds columns with "date" in the name and converts to Date. Additional columns can be parsed on for parsing. Cannot handle multiple date formats.


xh2/smtools documentation built on Nov. 5, 2019, 12:24 p.m.