melt_month: Translate 'zoomly' objects to yearmon format

Description Usage Arguments Examples

Description

Melt the month information of a zoomly object into the index, and return a "zoo" object with the index of "yearmon" class.

Usage

1

Arguments

x

a zoomly object.

Examples

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

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

ran-ran/zoocat documentation built on May 26, 2019, 10:56 p.m.