Learn R Programming

BMRSr (version 1.0.0)

clean_date_columns: Reformat date, time, and datetime columns

Description

Reformat date, time, and datetime columns

Usage

clean_date_columns(x)

Arguments

x

tibble/df; dataset with the columns to be formatted

Value

tibble/df; dataset with reformatted columns (if any needed reformatting)

Examples

Run this code
# NOT RUN {
generation_dataset_unclean <- as.data.frame(
apply(generation_dataset_example, 2, as.character)
) #Create a version of the example generation dataset with character columns
clean_date_columns(generation_dataset_unclean)
# }

Run the code above in your browser using DataLab