check_proportion | R Documentation |
Check whether x
is a (single) proportion.
check_proportion(x, null.ok = FALSE) assert_proportion( x, null.ok = FALSE, .var.name = checkmate::vname(x), add = NULL ) test_proportion(x, null.ok = FALSE) expect_proportion(x, null.ok = FALSE, info = NULL, label = vname(x))
x |
an object to check. |
null.ok |
( |
.var.name |
( |
add |
( |
info |
( |
label |
( |
TRUE
if successful, otherwise a string with the error message.
assertions
for more details.
check_proportion(0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.