| dimnames.exdf | R Documentation |
Returns or sets the dimension names of an exdf object's
main_data. When setting names, the column names of the exdf
object's units and categories are also set. Also enables
colnames and rownames for exdf objects.
## S3 method for class 'exdf'
dimnames(x)
## S3 replacement method for class 'exdf'
dimnames(x) <- value
x |
An |
value |
A possible value for |
Returns dimnames(x[['main_data']]).
exdf
simple_exdf <- exdf(data.frame(A = 1), data.frame(A = 'u'), data.frame(A = 'c'))
dimnames(simple_exdf)
dimnames(simple_exdf[['main_data']]) # An equivalent command
colnames(simple_exdf) <- "B"
rownames(simple_exdf) <- 2
colnames(simple_exdf)
rownames(simple_exdf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.