Permalink
Browse files

laply doc fix. Closes #108

  • Loading branch information...
1 parent 9ddb444 commit a9430ff1bbdf4463ed4ce8f902ede702d8882397 @hadley committed Oct 29, 2012
Showing with 8 additions and 3 deletions.
  1. +2 −2 R/laply.r
  2. +5 −0 man/alply.Rd
  3. +1 −1 man/laply.Rd
View
@@ -5,8 +5,8 @@
#'
#' \code{laply} is similar in spirit to \code{\link{sapply}} except
#' that it will always return an array, and the output is transposed with
-#' respect \code{sapply} - each element of the list corresponds to a column,
-#' not a row.
+#' respect \code{sapply} - each element of the list corresponds to a row,
+#' not a column.
#'
#' @template ply
#' @template l-
View
@@ -49,6 +49,11 @@
results into a list.
}
\details{
+ The list will have "dims" and "dimnames" corresponding to
+ the margins given. For instance \code{alply(x, c(3,2),
+ ...)} where \code{x} has dims \code{c(4,3,2)} will give a
+ result with dims \code{c(2,3)}.
+
\code{alply} is somewhat similar to \code{\link{apply}}
for cases where the results are not atomic.
}
View
@@ -48,7 +48,7 @@
\code{laply} is similar in spirit to \code{\link{sapply}}
except that it will always return an array, and the
output is transposed with respect \code{sapply} - each
- element of the list corresponds to a column, not a row.
+ element of the list corresponds to a row, not a column.
}
\section{Input}{
This function splits lists by elements.

0 comments on commit a9430ff

Please sign in to comment.