View source: R/Tidy_names_types_factors.R
parse_date_columns | R Documentation |
Parse date columns in a data.frame as Date. Use a named list to specify each date column (key) and the format (value) it is coded in.
parse_date_columns(data, date_formats)
data |
data.frame to modify |
date_formats |
named list with:
|
data.frame with date columns in Date type
J. Peter Marquardt
data <- data.frame(date = rep('01/23/4567', 5))
data <- parse_date_columns(data, list(date = '%m/%d/%Y'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.