Skip to content

Commit

Permalink
Clarify documentation of update remove_empties.R (#569)
Browse files Browse the repository at this point in the history
* Update remove_empties.R

Fixes #568 

Feel free to edit or change, it is a bit difficult to write a clear description.
Added a clarification for lower and higher values.

* Update documentation of `remove_empty()` `cutoff` argument

* Update R/remove_empties.R

* Update R/remove_empties.R

* Update R/remove_empties.R

* Update R/remove_empties.R

---------

Co-authored-by: Sam Firke <[email protected]>
  • Loading branch information
matanhakim and sfirke authored Nov 25, 2024
1 parent 74345da commit ef4ac5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/remove_empties.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#' @param which one of "rows", "cols", or `c("rows", "cols")`. Where no
#' value of which is provided, defaults to removing both empty rows and empty
#' columns, declaring the behavior with a printed message.
#' @param cutoff What fraction (>0 to <=1) of rows or columns must be empty to
#' be removed?
#' @param cutoff a row/col should have more than this fraction of non-NA values to be
#' retained. E.g., `cutoff = 0.8` means that rows/cols that are 20% or more missing will be dropped.
#' @param quiet Should messages be suppressed (`TRUE`) or printed
#' (`FALSE`) indicating the summary of empty columns or rows removed?
#' @return Returns the object without its missing rows or columns.
Expand Down
4 changes: 2 additions & 2 deletions man/remove_empty.Rd

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

0 comments on commit ef4ac5f

Please sign in to comment.