Description Usage Arguments Value Examples
View source: R/number_value_checks.R
Uses the assertr::within_bounds()
function.
1 | chk_in_range(.data, .low, .high, .variables)
|
.data |
Data to audit. |
.low |
Low value in the range. |
.high |
High value in the range. |
.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 = rnorm(10), b = rnorm(10))
flaws <- ds %>%
chk_in_range(-1, 1, "a")
aud_report(flaws)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.