View source: R/data-ts-signature-tbl.R
ts_signature_tbl | R Documentation |
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.
ts_signature_tbl(.data, .date_col, .pad_time = TRUE, ...)
.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 |
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
A tibble
Steven P. Sanderson II, MPH
Other Data Table Functions:
category_counts_tbl()
,
los_ra_index_summary_tbl()
,
named_item_list()
,
top_n_tbl()
,
ts_census_los_daily_tbl()
library(timetk)
ts_signature_tbl(
.data = m4_daily
, .date_col = date
, .pad_time = TRUE
, id
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.