Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dimlabels

Dimension labels (i.e., names of dimnames)


Description

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.

Usage

dimlabels(x)

Arguments

x

object that has dimensions (e.g., array).

Details

dimlabels is a very simple function that is simply names(dimnames(x)).

Value

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.

Examples

dimlabels(state.region)
dimlabels(attitude)
dimlabels(HairEyeColor)

str2str

Convert R Objects from One Structure to Another

v0.1.1
GPL (>= 2)
Authors
David Disabato [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.