Skip to content

Commit

Permalink
Add drop and type to generic signature of [row|col]Quantiles
Browse files Browse the repository at this point in the history
  • Loading branch information
const-ae committed Sep 28, 2020
1 parent 9e2e67b commit ea6ee5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
10 changes: 3 additions & 7 deletions R/rowQuantiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
#' @param probs A numeric vector of J probabilities in \[0, 1\].
#' @template na_rmParameter
#' @param type An integer specifying the type of estimator. See
#' \code{stats::\link[stats]{quantile}()}. for more details. Note, that this
#' is not a generic argument and not all implementation of this function have
#' to provide it.
#' \code{stats::\link[stats]{quantile}()}. for more details.
#' @param drop If `TRUE` a vector is returned if `J == 1`.
#' Note, that this is not a generic argument and not all implementation of
#' this function have to provide it.
#'
#' @template returnMatrix_JDim
#'
Expand All @@ -34,7 +30,7 @@
#'
#' @name rowQuantiles
#' @export
setGeneric("rowQuantiles", function(x, rows = NULL, cols = NULL, probs = seq(from = 0, to = 1, by = 0.25), na.rm = FALSE, ...) standardGeneric("rowQuantiles"),
setGeneric("rowQuantiles", function(x, rows = NULL, cols = NULL, probs = seq(from = 0, to = 1, by = 0.25), na.rm = FALSE, type = 7L, ..., drop = TRUE) standardGeneric("rowQuantiles"),
signature = "x"
)

Expand All @@ -58,7 +54,7 @@ setMethod("rowQuantiles", signature = "array", .default_rowQuantiles)
#' @rdname rowQuantiles
#' @name colQuantiles
#' @export
setGeneric("colQuantiles", function(x, rows = NULL, cols = NULL, probs = seq(from = 0, to = 1, by = 0.25), na.rm = FALSE, ...) standardGeneric("colQuantiles"),
setGeneric("colQuantiles", function(x, rows = NULL, cols = NULL, probs = seq(from = 0, to = 1, by = 0.25), na.rm = FALSE, type = 7L, ..., drop = TRUE) standardGeneric("colQuantiles"),
signature = "x"
)

Expand Down
16 changes: 6 additions & 10 deletions man/rowQuantiles.Rd

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

0 comments on commit ea6ee5f

Please sign in to comment.