Ddim: dim of vectors and arrays

Description Usage Arguments Value Author(s) Examples

Description

Get length of vectors and dimension of arrays in a unified manner.

Usage

1
  Ddim(x)

Arguments

x

vector or array

Value

Integer vector containing length of vector or dimension of array.

Author(s)

Christian W. Hoffmann, christian@echoffmann.ch

Examples

1
2
  Ddim(matrix(1:12,3,4))  #   3 4
  Ddim(rep(0,5))  # 5

cwhmisc documentation built on May 1, 2019, 7:55 p.m.