Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Ddim

dim of vectors and arrays


Description

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

Usage

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

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

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.