size | R Documentation |
Provides the dimensions of R objects in a manner compatible with
GNU Octave/MATLAB. This function is the same as size
, except this
size
can find the size of character vectors too. Some documentation from
size
.
size(x, k)
x |
An R object (array, vector, or matrix) |
k |
integer specifying a particular dimension |
"Return the number of rows and columns of the object x as a numeric
vector. If given a second argument, size
will return the size of the
corresponding dimension." Source: Eaton.
Hans Werner Borchers (pracma size), Irucka Embry
pracma size function definition - R package pracma created and maintained by Hans Werner Borchers. See size
.
John W. Eaton, David Bateman, Søren Hauberg, and Rik Wehbring (November 2022). GNU Octave: A high-level interactive language for numerical computations: Edition 7 for Octave version 7.3.0. https://docs.octave.org/octave.pdf. Page 47-48.
dim
, size
# Example from GNU Octave ndims function reference size(matlab::ones(4, 1, 2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.