Learn R Programming

zoocat (version 0.2.0.1)

reprocess_month: Reprocess month of zoomly objects

Description

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

Usage

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.

Value

a "zoomly" object.

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.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab