Learn R Programming

zoocat (version 0.2.0.1)

zoomly: zoomly Class

Description

A class designed for monthly data. "zoomly" class inherits "zoocat" class, and there is one field "month" in the column attribute (cattr) table.

Usage

zoomly(x = NULL, order.by, colattr)

Arguments

x

a matrix or a vector. For zoomly, if x is a matrix, each row will be treated as a year. If x is a vector, it will be treated as a matrix with only one column.

order.by

a numeric vector representing years.

colattr

a column attributes table contain a column "month".

Value

zoomly returns a zoomly object.

Examples

Run this code
# NOT RUN {
x <- matrix(1 : 20, nrow = 5)
zm <- zoomly(x, order.by = 1991 : 1995, 
             colattr = data.frame(month = c(2, 3, 5, 6)))

# }

Run the code above in your browser using DataLab