names | R Documentation |
Functions to get or set the names of an onion
## 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)
x |
onion |
Names attributes refers to colnames of the internal matrix, which
are retrieved or set using colnames()
or colnames<-()
.
Robin K. S. Hankin
a <- roct(5)
names(a) <- letters[1:5]
b <- romat()
dimnames(b) <- list(month = month.abb[1:5], location=names(islands)[1:6])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.