Description Usage Arguments Value See Also Examples
Thin wrapper around the assertr::assert()
and assertr::insist()
functions.
1 2 3 | chk_assert_func(.data, .function, .variables)
chk_insist_func(.data, .function, .variables)
|
.data |
Data to check for errors. |
.function |
|
.variables |
The columns to run the audit checks on. |
Adds assertr_errors
to data.frame.
See documentation on either assertr::assert()
or assertr::insist()
1 2 3 4 5 6 7 8 9 10 | library(magrittr)
library(assertr)
flaws <- iris %>%
chk_assert_func(within_bounds(5, 7), "Sepal.Length")
aud_report(flaws)
flaws <- iris %>%
chk_insist_func(within_n_mads(1), "Sepal.Length")
aud_report(flaws)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.