c_assert | R Documentation |
Check assertions about data.
c_assert(data, predicate, source, ...)
data |
A data frame. |
predicate |
A function that returns FALSE when violated. |
source |
Logical: TRUE or FALSE. |
... |
Comma-separated list of unquoted columns. |
If the predicate assertion is true, TRUE.
If the predicate assertion is false and source is TRUE, a data-frame with the offending rows.
If the predicate assertion is false and source is FALSE, an assertr data-frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.