Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 546 Bytes
\name{strip_splits}
\alias{strip_splits}
\title{Remove splitting variables from a data frame.}
\usage{
strip_splits(df)
}
\arguments{
\item{df}{data frame produced by \code{d*ply}.}
}
\description{
This is useful when you want to perform some operation to
every column in the data frame, except the variables that
you have used to split it. These variables will be
automatically added back on to the result when combining
all results together.
}
\examples{
dlply(mtcars, c("vs", "am"))
dlply(mtcars, c("vs", "am"), strip_splits)
}
Something went wrong with that request. Please try again.