time_plus_n_steps: Advance/retreat time_values by specified number of time...

View source: R/time-utils.R

time_plus_n_stepsR Documentation

Advance/retreat time_values by specified number of time "steps"

Description

Here, a "step" is based on the time_type, not just the class of x.

Usage

time_plus_n_steps(x, y, time_type)

time_minus_n_steps(x, y, time_type)

Arguments

x

a time_value (vector) of time type time_type

y

integerish (vector)

time_type

as in validate_slide_window_arg()

Value

a time_value (vector) of time type time_type


cmu-delphi/epiprocess documentation built on Feb. 22, 2025, 9:26 a.m.