size: Dimensions of a Matrix/Array

View source: R/convenience.R

sizeR Documentation

Dimensions of a Matrix/Array

Description

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

dim.

Examples

m <- mat("1, 3, 5; 7, 9, 11")
size(m)

ramify documentation built on June 24, 2025, 9:07 a.m.