Skip to content

Commit

Permalink
Explain the slices argument better
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed May 21, 2019
1 parent a18b0fb commit 93dd90a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion R/api-slice.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
#' @return A subset of `data`.
#' @param data A list, vector, data frame, matrix, or arbitrary array.
#' Anything with a `length()` or `dim()`.
#' @param slices Integer of length 1, number of pieces to split the data into.
#' @param slices Integer of length 1, number of slices (i.e. pieces)
#' of the whole dataset. Remember, `drake_slice(index = i)` returns
#' only slice number `i`.
#' @param index Integer of length 1, which piece of the partition to return.
#' @param margin Integer of length 1, margin over which to split the data.
#' For example, for a data frame or matrix,
Expand Down
4 changes: 3 additions & 1 deletion man/drake_slice.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93dd90a

Please sign in to comment.