Description Usage Arguments Details Value
Check if specified variable is outside of provided boundaries. Original name: fCheckOutsideRange.
1 | check_range(data, var, cond, return_pos = FALSE)
|
data |
A data frame. |
var |
A variable (column) name. |
cond |
A logical condition for outside values (see details). |
return_pos |
Should a vector cases outside the range also be returned? |
Example of condition structure: c(' <= ', 0) or c(' <= ', 0, '|', '>', 20) Allowed relational operators: < <= == >= > != Allowed logical operators: & |
Warnings are produced if a variable is outside specified range. If return_pos = TRUE, a vector containing the positions of cases that are outside the range is also returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.