| make_tsibble | R Documentation |
create a 'time series tibble' from a tibble or dataframe
make_tsibble(df, date_column, group_column,
period = c("day", "week", "month", "quarter", "year"))
df |
the tibble or dataframe from which to make a tsibble |
date_column |
the column containing a date for each observation |
group_column |
the column by which to group the data for each date |
period |
the lubridate::floor_date period to floor the observation dates to |
a tsibble with the specified time interval as the Key
## Not run:
nycflights13::weather %>%
make_tsibble(df = .,
date_column = time_hour,
group_column = origin,
period = "week")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.