Learn R Programming

UComp (version 4.0.1)

size: size

Description

size of vectors or matrices

Size of vector, matrix or array

Usage

size(y)

size(y)

Value

A vector with all the dimensions

Arguments

y

a vector, matrix or array

Author

Diego J. Pedregal

See Also

colMedians, rowMedians, tests, sumStats, gaussTest, ident, cusum, varTest, conv, armaFilter, dif, roots, zplane, acft, slide, plotSlide, Accuracy, tsDisplay

Examples

Run this code
s <- size(matrix(4, 3, 2))
s <- size(rep(4, 3))
s <- size(array(4, c(3, 2, 2)))

Run the code above in your browser using DataLab