1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/undim.R
\name{undim}
\alias{undim}
\alias{undim.default}
\alias{undim.listenv}
\title{Removes the dimension of an object}
\usage{
undim(x, ...)
}
\arguments{
\item{x}{An object with or without dimensions}
\item{...}{Not used.}
}
\value{
The object with the dimension attribute removed.
}
\description{
Removes the dimension of an object
}
\details{
This function does \code{attr(x, "dim") <- NULL}, which automatically also does
\code{attr(x, "dimnames") <- NULL}.
However, other attributes such as names attributes are preserved,
which is not the case if one do \code{dim(x) <- NULL}.
}
\keyword{internal}
|