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.


listenv documentation built on Dec. 28, 2022, 2:10 a.m.

Related to undim in listenv...