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


Search within the cwhmisc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.