Description Usage Arguments Value Examples
View source: R/number_value_checks.R
Uses the assertr::within_n_mads()
.
1 | chk_outliers(.data, .n_mads, .variables)
|
.data |
Data to audit. |
.n_mads |
Number of mean absolute deviations (see assertr::within_n_mads). |
.variables |
Column variables to check. |
Adds attribute that contains the audit errors, if any, to the data.
Use aud_report()
to view the audit fails.
1 2 3 4 5 6 | library(magrittr)
ds <- data.frame(a = c(rnorm(100), 10))
flaws <- ds %>%
chk_outliers(2, "a")
aud_report(flaws)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.