Learn R Programming

arrayhelpers (version 0.76-20120816)

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