Learn R Programming

vetools (version 1.3-28)

tssum: The sum for time-series objects

Description

This function is time related that helps manipulate time-series.

Usage

tssum(series, months = 1:12, max.na.fraction = 0.3, safe.check = FALSE)

Arguments

series
a class "ts" object
months
a vector of length 1 to 12 specifying the months to sum
max.na.fraction
fraction of NAs to admit before discarding accumulated sum over meses
safe.check
boolean specifying if some debbuging checks should be performed

Value

returns a time-series object of class "ts" of frequency length(meses) with the accumulated sum over the months defined in meses.

See Also

vetools, diffmonths, diasdelmes, m12, time2ym, ym2time, xts2ts.