View source: R/prep_tbl_time.R
prep_tbl_time | R Documentation |
Automatically create tibbletime objects from tibbles
prep_tbl_time(data, message = FALSE)
data |
A |
message |
A boolean. If |
Detects a date or datetime index column and automatically
Returns a tibbletime
object of class tbl_time
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.