reprocess_month: Reprocess month of 'zoomly' objects

Description Usage Arguments Details Value Examples

Description

Reprocess month of "zoomly" objects, make the objects contain the data corresponding to months of previous years and following years.

Usage

1
reprocess_month(x, mon.repro)

Arguments

x

a zoomly object.

mon.repro

new setting month vector. Can be integers larger than 12 or less than 1.

Details

For example, if there is a data value corresponding to year of 1990 and month of Jan, the argument month for reprocess_month can be set to be 13, and we get data of "Jan.1" (means Jan of the following year, see gmon), and the year of that data value will be 1991.

Value

a "zoomly" object.

Examples

1
2
3
4
5
mat <- matrix(1:48, ncol = 12)
ctable <- data.frame(month = rep(1 : 12))
zm <- zoomly(mat, order.by = 1991 : 1994, colattr = ctable)
reprocess_month(zm, mon.repro = -11:2)
reprocess_month(zm, mon.repro = -24:3)

zoocat documentation built on May 2, 2019, 10:22 a.m.