prep_tbl_time: Automatically create tibbletime objects from tibbles

View source: R/prep_tbl_time.R

prep_tbl_timeR Documentation

Automatically create tibbletime objects from tibbles

Description

Automatically create tibbletime objects from tibbles

Usage

prep_tbl_time(data, message = FALSE)

Arguments

data

A tibble.

message

A boolean. If TRUE, returns a message indicating any conversion details important to know during the conversion to tbl_time class.

Details

Detects a date or datetime index column and automatically

Value

Returns a tibbletime object of class tbl_time.

Examples


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)


anomalize documentation built on Nov. 2, 2023, 5:13 p.m.