reset_timeplyr_options {timeplyr} | R Documentation |
Reset 'timeplyr' options
Description
One can set global options to be used in timeplyr. These options include:
time_type - Controls whether to use periods, durations or to decide automatically.
roll_month - Controls how to roll forward or backward impossible calendar days.
roll_dst - Controls how to roll forward or backward impossible date-times.
interval_style - Controls how
time_interval
objects are formatted.interval_sub_formatter - A function to format the start and end times of a
time_interval
.use_intervals - Controls whether
time_intervals
are returned whenever dates or date-times are aggregated. If this isFALSE
the start time (or left-hand side) is always returned.
Usage
reset_timeplyr_options()
Value
Resets the timeplyr global options (prefixed with "timeplyr."
):
time_type, roll_month, roll_dst, interval_style,
interval_sub_formatter and use_intervals.
Examples
library(timeplyr)
options(timeplyr.interval_style = "start")
getOption("timeplyr.interval_style")
reset_timeplyr_options()
getOption("timeplyr.interval_style")