Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tk_time_scale_template

Get and modify the Time Scale Template


Description

Get and modify the Time Scale Template

Usage

set_tk_time_scale_template(.data)

get_tk_time_scale_template()

tk_time_scale_template()

Arguments

.data

A tibble with a "time_scale", "frequency", and "trend" columns.

Details

Used to get and set the time scale template, which is used by tk_get_frequency() and tk_get_trend() when period = "auto".

The predefined template is stored in a function tk_time_scale_template(). This is the default used by timetk.

Changing the Default Template

  • You can access the current template with get_tk_time_scale_template().

  • You can modify the current template with set_tk_time_scale_template().

See Also

Examples

get_tk_time_scale_template()

set_tk_time_scale_template(tk_time_scale_template())

timetk

A Tool Kit for Working with Time Series in R

v2.6.1
GPL (>= 3)
Authors
Matt Dancho [aut, cre], Davis Vaughan [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.