Description Usage Arguments Value Examples
Tests if the vector/column contains values other than expected
1 2 |
setup |
the setup class |
df |
the dataframe |
... |
other arguments passed to the function |
class with test_result, test_message, test_description
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
df <- data.frame(x = 1:4, y = 5:8)
setup <- setup_test_values("df_name", "x", values = 1:4)
test <- test(setup, df)
## test$test_result returns TRUE
setup <- setup_test_values("df_name", "y", values = 1:4)
test <- test(setup, df)
## test$test_result returns FALSE
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.