powered by
Functions to get or set the names of an onion
# 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)
onion
Robin K. S. Hankin
Names attributes refers to colnames of the internal matrix, which are retrieved or set using colnames() or colnames<-().
colnames()
colnames<-()
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 DataLab