Skip to content

Commit

Permalink
doc: add examples for throw_msg_if_duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
gladkia committed Oct 9, 2024
1 parent f08ecb9 commit 50bd9f3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/duplicates.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ get_assay_dt_duplicated_rows <- function(dt, output = "index") {
#' @param assay_name string with the name of the assay
#' @param msg_f function to be used to throw the message
#' @param preview_max_numb number of rows to preview if duplicates found
#'
#' @examples
#' sdata <- get_synthetic_data("finalMAE_small")
#' smetrics_data <- convert_se_assay_to_dt(sdata[[1]], "Metrics")
#' throw_msg_if_duplicates(smetrics_data, assay_name = "Metrics")
#' throw_msg_if_duplicates(smetrics_data, assay_name = "Metrics", msg_f = futile.logger::flog.info)
#' @return NULL
#' @keywords duplicates
#'
Expand Down
3 changes: 2 additions & 1 deletion man/get_duplicated_rows.Rd

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

6 changes: 6 additions & 0 deletions man/throw_msg_if_duplicates.Rd

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

0 comments on commit 50bd9f3

Please sign in to comment.