Skip to contents

Retrieve the dimensions of a matrix or array.

Usage

size(x)

Arguments

x

A matrix, array, or data.frame.

Value

The dimensions of the object.

See also

Examples

m <- mat("1, 3, 5; 7, 9, 11")
size(m)
#> [1] 2 3