Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Jun 25, 2023
1 parent 308bd0d commit 06f3e7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
12 changes: 4 additions & 8 deletions R/dplyr_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,15 @@ distinct.tidybulk <- function (.data, ..., .keep_all = FALSE)
#' For details and examples, see ?dplyr_by.
#' @param .preserve when `FALSE` (the default), the grouping structure
#' is recalculated based on the resulting data, otherwise it is kept as is.
#'
#' @return
#' An object of the same type as `.data`.
#'
#' * Rows are a subset of the input, but appear in the same order.
#' * Columns are not modified.
#' * The number of groups may be reduced (if `.preserve` is not `TRUE`).
#' * Data frame attributes are preserved.
#' @section Methods:
#' This function is a **generic**, which means that packages can provide
#' implementations (methods) for other classes. See the documentation of
#' individual methods for extra arguments and differences in behaviour.
#'
#'
#' The following methods are currently available in loaded packages:
#' @seealso [filter_all()], [filter_if()] and [filter_at()].
#'
Expand All @@ -272,13 +269,12 @@ distinct.tidybulk <- function (.data, ..., .keep_all = FALSE)
#'
#' se |> tidybulk() |> filter(dex=="untrt")
#'
#' # Learn more in ?dplyr_tidy_eval
NULL

#' @inheritParams filter
#' @export
filter.tidybulk <- function (.data, ..., .by = NULL, .preserve = FALSE)
{
filter.tidybulk <- function(.data, ..., .by = NULL, .preserve = FALSE){
.data |>
drop_class(c("tidybulk", "tt")) |>
dplyr::filter( ..., .by = .by, .preserve = .preserve) |>
Expand Down
12 changes: 2 additions & 10 deletions man/filter-methods.Rd

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

0 comments on commit 06f3e7c

Please sign in to comment.