as.zoomly: Coercion objects to class 'zoomly'

Description Usage Arguments Value Examples

Description

Coercion objects to class "zoomly". The index name of the object will be set to "year".

Usage

1
2
3
4
as.zoomly(x, ...)

## S3 method for class 'zoocat'
as.zoomly(x, ...)

Arguments

x

an object.

...

further arguments passed to methods.

Value

A "zoomly" object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
x <-  matrix(1 : 36, nrow = 3)
zc <- zoocat(x, order.by = 1991 : 1993, 
             colattr = data.frame(month = 1 : 12))
as.zoomly(zc)
             

x <- matrix(1 : 20, nrow = 5)
colAttr <- data.frame(month = c(2, 3, 5, 6), name = c(rep('xx', 3), 'yy'))
zc <- zoocat(x, order.by = 1991 : 1995, colattr = colAttr)
as.zoomly(zc)

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