Permalink
Browse files

Doc tweakings and file fixes

  • Loading branch information...
hadley committed Oct 11, 2012
1 parent 3ee18e5 commit 2d1d7cdbee16d39a89977be60a67d61a6c90cc26
Showing with 37 additions and 21 deletions.
  1. +1 −1 DESCRIPTION
  2. +1 −0 R/aaply.r
  3. +3 −1 R/alply.r
  4. +3 −1 R/laply.r
  5. 0 R/{lply.r → ldply.r}
  6. +1 −0 R/llply.r
  7. +10 −7 man/aaply.Rd
  8. +5 −3 man/alply.Rd
  9. +7 −5 man/laply.Rd
  10. +6 −3 man/llply.Rd
View
@@ -84,7 +84,6 @@ Collate:
'l_ply.r'
'laply.r'
'llply.r'
- 'lply.r'
'm_ply.r'
'maply.r'
'mdply.r'
@@ -94,3 +93,4 @@ Collate:
'rdply.r'
'rlply.r'
'liply.r'
+ 'ldply.r'
View
@@ -1,6 +1,7 @@
#' Split array, apply function, and return results in an array.
#'
#' For each slice of an array, apply function, keeping results as an array.
+#'
#' This function is very similar to \code{\link{apply}}, except that it will
#' always return an array, and when the function returns >1 d data structures,
#' those dimensions are added on to the highest dimensions, rather than the
View
@@ -1,7 +1,9 @@
#' Split array, apply function, and return results in a list.
#'
#' For each slice of an array, apply function then combine results into a
-#' list. \code{alply} is somewhat similar to \code{\link{apply}} for cases
+#' list.
+#'
+#' \code{alply} is somewhat similar to \code{\link{apply}} for cases
#' where the results are not atomic.
#'
#' @template ply
View
@@ -1,7 +1,9 @@
#' Split list, apply function, and return results in an array.
#'
#' For each element of a list, apply function then combine results into an
-#' array. \code{laply} is similar in spirit to \code{\link{sapply}} except
+#' array.
+#'
+#' \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.
View
File renamed without changes.
View
@@ -1,6 +1,7 @@
#' Split list, apply function, and return results in a list.
#'
#' For each element of a list, apply function, keeping results as a list.
+#'
#' \code{llply} is equivalent to \code{\link{lapply}} except that it will
#' preserve labels and can display a progress bar.
#'
View
@@ -39,13 +39,16 @@
}
\description{
For each slice of an array, apply function, keeping
- results as an array. This function is very similar to
- \code{\link{apply}}, except that it will always return an
- array, and when the function returns >1 d data
- structures, those dimensions are added on to the highest
- dimensions, rather than the lowest dimensions. This
- makes \code{aaply} idempotent, so that \code{apply(input,
- X, identity)} is equivalent to \code{aperm(input, X)}.
+ results as an array.
+}
+\details{
+ This function is very similar to \code{\link{apply}},
+ except that it will always return an array, and when the
+ function returns >1 d data structures, those dimensions
+ are added on to the highest dimensions, rather than the
+ lowest dimensions. This makes \code{aaply} idempotent,
+ so that \code{apply(input, X, identity)} is equivalent to
+ \code{aperm(input, X)}.
}
\section{Input}{
This function splits matrices, arrays and data frames by
View
@@ -33,9 +33,11 @@
}
\description{
For each slice of an array, apply function then combine
- results into a list. \code{alply} is somewhat similar to
- \code{\link{apply}} for cases where the results are not
- atomic.
+ results into a list.
+}
+\details{
+ \code{alply} is somewhat similar to \code{\link{apply}}
+ for cases where the results are not atomic.
}
\section{Input}{
This function splits matrices, arrays and data frames by
View
@@ -29,11 +29,13 @@
}
\description{
For each element of a list, apply function then combine
- results into an array. \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.
+ results into an array.
+}
+\details{
+ \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.
}
\section{Input}{
This function splits lists by elements.
View
@@ -35,9 +35,12 @@
}
\description{
For each element of a list, apply function, keeping
- results as a list. \code{llply} is equivalent to
- \code{\link{lapply}} except that it will preserve labels
- and can display a progress bar.
+ results as a list.
+}
+\details{
+ \code{llply} is equivalent to \code{\link{lapply}} except
+ that it will preserve labels and can display a progress
+ bar.
}
\section{Input}{
This function splits lists by elements.

0 comments on commit 2d1d7cd

Please sign in to comment.