Skip to content

Commit

Permalink
Update slice.R (#6876)
Browse files Browse the repository at this point in the history
* Update slice.R

switched highest/lowest for slice_min and slice_max to improve clarity

* Use smallest/largest

---------

Co-authored-by: Davis Vaughan <[email protected]>
  • Loading branch information
scarioscia and DavisVaughan authored Aug 23, 2023
1 parent 75a6b25 commit 9738f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/slice.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#'
#' * `slice_head()` and `slice_tail()` select the first or last rows.
#' * `slice_sample()` randomly selects rows.
#' * `slice_min()` and `slice_max()` select rows with highest or lowest values
#' of a variable.
#' * `slice_min()` and `slice_max()` select rows with the smallest or largest
#' values of a variable.
#'
#' If `.data` is a [grouped_df], the operation will be performed on each group,
#' so that (e.g.) `slice_head(df, n = 5)` will select the first five rows in
Expand Down
4 changes: 2 additions & 2 deletions man/slice.Rd

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

0 comments on commit 9738f34

Please sign in to comment.