Description Usage Arguments Value
Check that input is a dataframe that validates according to the validator and optionally show which data doesn't validate
1 | assert_valid_data(data, validator, on_error = on_error_options)
|
data |
a dataframe which will be validated against the validator |
validator |
a validator against which to validate the data |
on_error |
if data does _not_ validate, whether to show the reasons and whether to throw: all: show all the problems and throw an exception none: don't show anything, but throw an exception summary: show a summary and throw an exception tell: just return TRUE if OK and FALSE if invalid |
TRUE if data is valid and FALSE if invalid (only when "on_error" == "tell")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.