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

View source: R/miscellaneous.R

get_new_startR Documentation

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)

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?

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.


sstvars documentation built on April 11, 2025, 5:47 p.m.