dimlabels {str2str}R Documentation

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)

[Package str2str version 1.0.0 Index]