zoomly: 'zoomly' Class

Description Usage Arguments Value Examples

View source: R/zoomly.R

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

1
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

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

ran-ran/zoocat documentation built on July 5, 2017, 8:41 p.m.