tsenter: Inserts a number to a series

Description Usage Arguments Value Examples

Description

Inserts a number to a series

Usage

1
tsenter(series, year, period, value)

Arguments

series

A ts object

year

The year for the observation

value

The value to insert on year month in the ts object

month

The month of the observation

Value

The new ts object.

Examples

1
2
3
temp <- c(1:14)
Series1 <- ts(temp,start=c(2016,1),frequency = 12)
Series1 <- tsenter(series=Series1,year=2017,period=3,value=47)

thelinkan/tsl documentation built on May 31, 2019, 9:48 a.m.