Learn R Programming

ramify (version 0.4.0)

size: Dimensions of a Matrix/Array

Description

Retrieve the dimensions of a matrix or array.

Usage

size(x)

Value

The dimensions of the object.

Arguments

x

A matrix, array, or data.frame.

See Also

Examples

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

Run the code above in your browser using DataLab