listenv (version 0.8.0)

undim: Removes the dimension of an object

Description

Removes the dimension of an object

Usage

undim(x, ...)

Value

The object with the dimension attribute removed.

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.