powered by
Automatically create tibbletime objects from tibbles
prep_tbl_time(data, message = FALSE)
Returns a tibbletime object of class tbl_time.
tibbletime
tbl_time
A tibble.
tibble
A boolean. If TRUE, returns a message indicating any conversion details important to know during the conversion to tbl_time class.
TRUE
Detects a date or datetime index column and automatically
library(dplyr) library(tibbletime) data_tbl <- tibble( date = seq.Date(from = as.Date("2018-01-01"), by = "day", length.out = 10), value = rnorm(10) ) prep_tbl_time(data_tbl)
Run the code above in your browser using DataLab