ndims: How many dimensions does an object have?

ndimsR Documentation

How many dimensions does an object have?

Description

Useful wrapper for get_dims().

Usage

ndims(x)

Arguments

x

(an object) An object.

Examples

#flexible
ndims(1:3) #vector
ndims(iris) #data frame
ndims(array(1:27, dim = rep(3, 3))) #array
ndims(mean) #function

Deleetdk/kirkegaard documentation built on Feb. 28, 2025, 5:04 p.m.