Get length of vectors and dimension of arrays in a unified manner.
vector or array
Integer vector containing length of vector or dimension of array.
Christian W. Hoffmann, firstname.lastname@example.org
Ddim(matrix(1:12,3,4)) # 3 4
Ddim(rep(0,5)) # 5
Questions? Problems? Suggestions? Tweet to @rdrrHQian@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.