convert_date | R Documentation |
Converts character date fields to POSIXct format. Converts any field name ending in "_DATE" to POSIXct. Typically only needed for data exported from Oracle database using .csv output.
convert_date(df)
df |
data frame; A data frame with characrer date fields to be converted from character to POSIXct. |
A data frame containing POSIXct date fields.
# Get test data csv_risk <- readr::read_csv(system.file("extdata", "RISK_MAIN_VIEW.csv", package = "rarr"), show_col_types = FALSE) # Convert date character fields risk <- convert_date(csv_risk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.