powered by
Removes the dimension of an object
undim(x, ...)
The object with the dimension attribute removed.
An object with or without dimensions
Not used.
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.
attr(x, "dim") <- NULL
attr(x, "dimnames") <- NULL
dim(x) <- NULL