Description Usage Arguments Details Value Author(s) Examples
Returns a tibble that has year, month, week, week day and hour added from a date column
1 | ts_ymwdh_tbl(.data, .date_col)
|
.data |
The data that is being analyzed, data must be a tibble/data.frame |
.date_col |
The column of the tibble that holds the date |
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 tibble.
You must know the data going into the function and if certain columns should be dropped or kept when using further functions
Future work - Add boolean for pad_by_time to fill in missing time series information
A tibble
Steven P Sanderson II, MPH
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.