ts_signature_tbl {healthyR} | R Documentation |
Make a Time Enhanced Tibble
Description
Returns a tibble that adds the time series signature from the
timetk::tk_augment_timeseries_signature()
function. All added from a chosen
date column defined by the .date_col
parameter.
Usage
ts_signature_tbl(.data, .date_col, .pad_time = TRUE, ...)
Arguments
.data |
The data that is being analyzed. |
.date_col |
The column that holds the date. |
.pad_time |
Boolean TRUE/FALSE. If TRUE then the |
... |
Grouping variables to be used by |
Details
Supply data with a date column and this will add the year, month, week, week day and hour to the tibble. The original date column is kept.
Returns a time-series signature tibble.
You must know the data going into the function and if certain columns should be dropped or kept when using further functions
Value
A tibble
Author(s)
Steven P. Sanderson II, MPH
See Also
Other Data Table Functions:
category_counts_tbl()
,
los_ra_index_summary_tbl()
,
named_item_list()
,
top_n_tbl()
,
ts_census_los_daily_tbl()
Examples
library(timetk)
ts_signature_tbl(
.data = m4_daily
, .date_col = date
, .pad_time = TRUE
, id
)