assert_valid_data: Check that input is a dataframe that validates according to...

Description Usage Arguments Value

Description

Check that input is a dataframe that validates according to the validator and optionally show which data doesn't validate

Usage

1
assert_valid_data(data, validator, on_error = on_error_options)

Arguments

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

Value

TRUE if data is valid and FALSE if invalid (only when "on_error" == "tell")


richardslab/MRutils documentation built on Dec. 22, 2021, 4 p.m.