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