undim: Removes the dimension of an object

View source: R/undim.R

undimR Documentation

Removes the dimension of an object

Description

Removes the dimension of an object

Usage

undim(x, ...)

Arguments

x

An object with or without dimensions

...

Not used.

Details

This function does attr(x, "dim") <- NULL, which automatically also does attr(x, "dimnames") <- NULL. However, other attributes such as names attributes are preserved, which is not the case if one do dim(x) <- NULL.

Value

The object with the dimension attribute removed.


HenrikBengtsson/listenv documentation built on Jan. 31, 2024, 9:08 a.m.