onion (version 1.5-0)

names: Names of an onionic vector

Description

Functions to get or set the names of an onion

Usage

# S4 method for onion
names(x)
# S4 method for onionmat
rownames(x)
# S4 method for onionmat
colnames(x)
# S4 method for onionmat
dimnames(x)
# S4 method for onionmat
dim(x)

Arguments

x

onion

Author

Robin K. S. Hankin

Details

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

Examples

Run this code
a <- roct(5)
names(a) <- letters[1:5]

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

Run the code above in your browser using DataCamp Workspace