fill_year_with_nas: Fill Up a Time Series with NAs

View source: R/fill_year_with_nas.R

fill_year_with_nasR Documentation

Fill Up a Time Series with NAs

Description

When plotting a time series you might want set the range of the plot a little wider than just the start and end date of the original series. This function add fills up the current period (typically year) with NA.

Usage

fill_year_with_nas(x, add_periods = 1, fill_up_start = FALSE)

Arguments

x

object of class ts

add_periods

integer periods to add.

fill_up_start

logical should start year be filled up? Defaults to FALSE.


mbannert/tstools documentation built on Feb. 4, 2024, 3:34 p.m.