Learn R Programming

sstvars (version 1.1.0)

get_new_start: Get the new starting time of series that is forwarded some number of steps

Description

get_new_start calculates the new starting time of series that is forwarded some number of steps.

Usage

get_new_start(y_start, y_freq, steps_forward)

Value

Returns a length two numeric vector with the "year" (or "major") time point in the first element the "quarter/month/week/day" (or "minor") time in the second element for a series that is forwarded from y_start

steps_forward steps forward.

Arguments

y_start

original starting time of the series

y_freq

frequency of the series

steps_forward

how many steps the series should be forwarded?