undim: Removes the dimension of an object

Description Usage Arguments Details Value

View source: R/undim.R

Description

Removes the dimension of an object

Usage

1
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. 6, 2019, 1:07 a.m.

Related to undim in listenv...