Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 24, 2023
1 parent 7f4719a commit 462e8ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions R/check_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
#' group_iris <- datawizard::data_group(iris, "Species")
#' check_outliers(group_iris)
#'
#' @examplesIf require("see") && require("bigutilsr") && require("loo") && require("MASS") && require("ICSOutlier") && require("ICS") && require("dbscan")
#' \donttest{
#' # You can also run all the methods
#' check_outliers(data, method = "all")
Expand All @@ -317,10 +318,7 @@
#' model <- lm(disp ~ mpg + hp, data = mt2)
#'
#' outliers_list <- check_outliers(model)
#'
#' if (require("see")) {
#' plot(outliers_list)
#' }
#' plot(outliers_list)
#'
#' insight::get_data(model)[outliers_list, ] # Show outliers data
#' }
Expand Down Expand Up @@ -508,7 +506,7 @@ check_outliers.default <- function(x,

num.df <- outlier_count$all[!names(outlier_count$all) %in% c("Row", ID)]
if (isTRUE(nrow(num.df) > 0)) {
num.df <- datawizard::change_code(
num.df <- datawizard::recode_values(
num.df,
recode = list(`2` = "(Multivariate)")
)
Expand Down
7 changes: 3 additions & 4 deletions man/check_outliers.Rd

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

0 comments on commit 462e8ae

Please sign in to comment.