Learn R Programming

healthyR.ts (version 0.3.1)

ts_to_tbl: Coerce a time-series object to a tibble

Description

This function takes in a time-series object and returns it in a tibble format.

Usage

ts_to_tbl(.data)

Value

A tibble

Arguments

.data

The time-series object you want transformed into a tibble

Author

Steven P. Sanderson II, MPH

Details

This function makes use of timetk::tk_tbl() under the hood to obtain the initial tibble object. After the inital object is obtained a new column called date_col is constructed from the index column using lubridate if an index column is returned.

See Also

Other Utility: auto_stationarize(), calibrate_and_plot(), internal_ts_backward_event_tbl(), internal_ts_both_event_tbl(), internal_ts_forward_event_tbl(), model_extraction_helper(), ts_get_date_columns(), ts_info_tbl(), ts_is_date_class(), ts_lag_correlation(), ts_model_auto_tune(), ts_model_compare(), ts_model_rank_tbl(), ts_model_spec_tune_template(), ts_qq_plot(), ts_scedacity_scatter_plot(), util_difflog_ts(), util_doublediff_ts(), util_doubledifflog_ts(), util_log_ts(), util_singlediff_ts()

Examples

Run this code

ts_to_tbl(BJsales)
ts_to_tbl(AirPassengers)

Run the code above in your browser using DataLab