Learn R Programming

arrayhelpers (version 1.0-20160527)

ndim: number of dimensions

Description

number of dimensions

Usage

ndim(a)

Arguments

a

vector, matrix, or array

...

indexing instructions. The names of the arguments specify the dimension (i = 1st, j = 2nd, ...). The indexing expressions are the same as for [

Value

integer: length of dim attribute