parse_date_columns {basecamb} | R Documentation |
Parse values in date columns as Dates
Description
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.
Usage
parse_date_columns(data, date_formats)
Arguments
data |
data.frame to modify |
date_formats |
named list with:
|
Value
data.frame with date columns in Date type
Author(s)
J. Peter Marquardt
Examples
data <- data.frame(date = rep('01/23/4567', 5))
data <- parse_date_columns(data, list(date = '%m/%d/%Y'))
[Package basecamb version 1.1.5 Index]