Skip to content
Browse files

Merge branch 'master' of github.com:hadley/plyr

  • Loading branch information...
2 parents ed5d482 + 83346d3 commit 9d8294e1cc83858da3fab3285444f7ea8fe391da @hadley committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 R/rbind-fill-matrix.r
  2. +1 −1 R/rbind-fill.r
  3. +1 −1 R/vaggregate.r
  4. +1 −1 man/vaggregate.Rd
View
2 R/rbind-fill-matrix.r
@@ -70,7 +70,7 @@ rbind.fill.matrix <- function(...) {
## fill in the new matrix
for (i in seq_along(rows)) {
- rng <- seq(pos[i, 1], length = pos[i, 2])
+ rng <- seq(pos[i, 1], length.out = pos[i, 2])
output[rng, lcols[[i]]] <- matrices[[i]]
}
View
2 R/rbind-fill.r
@@ -63,7 +63,7 @@ rbind.fill <- function(...) {
# Copy inputs into output
for (i in seq_along(rows)) {
- rng <- seq(pos[i, 1], length = pos[i, 2])
+ rng <- seq(pos[i, 1], length.out = pos[i, 2])
df <- dfs[[i]]
for (var in names(df)) {
View
2 R/vaggregate.r
@@ -19,7 +19,7 @@
#' @export
#' @examples
#' # Some examples of use borrowed from ?tapply
-#' n <- 17; fac <- factor(rep(1:3, length = n), levels = 1:5)
+#' n <- 17; fac <- factor(rep(1:3, length.out = n), levels = 1:5)
#' table(fac)
#' vaggregate(1:n, fac, sum)
#' vaggregate(1:n, fac, sum, .default = NA_integer_)
View
2 man/vaggregate.Rd
@@ -33,7 +33,7 @@ because it avoids making a copy of the data.
}
\examples{
# Some examples of use borrowed from ?tapply
-n <- 17; fac <- factor(rep(1:3, length = n), levels = 1:5)
+n <- 17; fac <- factor(rep(1:3, length.out = n), levels = 1:5)
table(fac)
vaggregate(1:n, fac, sum)
vaggregate(1:n, fac, sum, .default = NA_integer_)

0 comments on commit 9d8294e

Please sign in to comment.
Something went wrong with that request. Please try again.