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 April 22, 2024, 5:22 p.m.