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

numel

Number of Elements


Description

Number of elements in a vector, matrix, or array.

Usage

numel(x)

Arguments

x

a vector, matrix, array or list

Value

the number of elements of a.

See Also

Examples

numel(c(1:12))
numel(matrix(1:12, 3, 4))

pracma

Practical Numerical Math Functions

v2.3.3
GPL (>= 3)
Authors
Hans W. Borchers [aut, cre]
Initial release
2021-01-22

We don't support your browser anymore

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