Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

alply .dims should default to FALSE, of course

  • Loading branch information...
commit 615634b118da9919adab1bf0769f6620e38493c9 1 parent e0b2b87
@hadley authored
Showing with 5 additions and 2 deletions.
  1. +1 −1  R/alply.r
  2. +4 −1 man/alply.Rd
View
2  R/alply.r
@@ -21,7 +21,7 @@
#' alply(ozone, 3, function(x) table(round(x)))
alply <- function(.data, .margins, .fun = NULL, ..., .expand = TRUE,
.progress = "none", .inform = FALSE, .parallel = FALSE,
- .paropts = NULL, .dims = TRUE) {
+ .paropts = NULL, .dims = FALSE) {
pieces <- splitter_a(.data, .margins, .expand)
res <- llply(.data = pieces, .fun = .fun, ...,
View
5 man/alply.Rd
@@ -4,7 +4,7 @@
\usage{
alply(.data, .margins, .fun = NULL, ..., .expand = TRUE,
.progress = "none", .inform = FALSE, .parallel = FALSE,
- .paropts = NULL)
+ .paropts = NULL, .dims = FALSE)
}
\arguments{
\item{.fun}{function to apply to each piece}
@@ -40,6 +40,9 @@
output be 1d (expand = FALSE), with an element for each
row; or nd (expand = TRUE), with a dimension for each
variable.}
+
+ \item{.dims}{if \code{TRUE}, copy over dimensions and
+ names from input.}
}
\value{
list of results
Please sign in to comment.
Something went wrong with that request. Please try again.