names: Names of an onionic vector

Description Usage Arguments Details Author(s) Examples

Description

Functions to get or set the names of an onion

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S4 method for signature 'onion'
names(x)
## S4 method for signature 'onionmat'
rownames(x)
## S4 method for signature 'onionmat'
colnames(x)
## S4 method for signature 'onionmat'
dimnames(x)
## S4 method for signature 'onionmat'
dim(x)

Arguments

x

onion

Details

Names attributes refers to colnames of the internal matrix, which are retrieved or set using colnames() or colnames<-().

Author(s)

Robin K. S. Hankin

Examples

1
2
3
4
5
a <- roct(5)
names(a) <- letters[1:5]

b <- romat()
dimnames(b) <- list(month = month.abb[1:5], location=names(islands)[1:6])

onion documentation built on Feb. 11, 2021, 9:06 a.m.