View source: R/str2str_functions.R
dimlabels | R Documentation |
dimlabels
returns the the dimension labels (i.e., names of dimnames)
of an object. This is most useful for arrays, which can have anywhere from 1
to 1000+ dimensions.
dimlabels(x)
x |
object that has dimensions (e.g., array). |
dimlabels
is a very simple function that is simply names(dimnames(x))
.
character vector of length = ndim(x)
specifying the dimension
labels (i.e., names of dimnames) of x
. If x
does not have any
dimensions, or has dimensions but no dimension labels, then NULL is returned.
dimlabels(state.region)
dimlabels(attitude)
dimlabels(HairEyeColor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.