Learn R Programming

zoocat (version 0.2.0.1)

indname: Get or set the name of the index variable

Description

Get or set the name of the index variable

Usage

indname(x)

indname(x) <- value

# S3 method for zoocat indname(x)

# S3 method for zoocat indname(x) <- value

Arguments

x

the object.

value

the new value.

Examples

Run this code
# NOT RUN {
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)
indname(zc)
indname(zc) <- 'time'

# }

Run the code above in your browser using DataLab