get_dims: Get dimensions of object.

get_dimsR Documentation

Get dimensions of object.

Description

Returns the dimensions of an object. Also works on atomic (1-d) objects for which base-r dim() returns NULL.

Usage

get_dims(x)

Arguments

x

(an object) An object.

Examples

v = 1:10
get_dims(v)
m = matrix(1:9, nrow=3)
get_dims(m)

Deleetdk/kirkegaard documentation built on June 7, 2024, 7:49 a.m.