Learn R Programming

data.validator (version 0.2.1)

Automatic Data Validation and Reporting

Description

Validate dataset by columns and rows using convenient predicates inspired by 'assertr' package. Generate good looking HTML report or print console output to display in logs of your data processing pipeline.

Copy Link

Version

Install

install.packages('data.validator')

Monthly Downloads

307

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Marcin Dubel

Last Published

December 11th, 2023

Functions in data.validator (0.2.1)

get_results_number

Get results number
parse_results_to_df

Parse results to data.frame
get_ast

Constructs an Abstract Syntax Tree for an expression
render_raw_report_ui

Render simple version of report
prepare_modal_content

Prepare modal content.
save_summary

Save simple validation summary in text file
render_semantic_report_ui

Render semantic version of report
segment

Create a UI segment element.
validate_rows

Validation on rows
save_results

Saving results table to external file
result_table

Create table with results.
save_report

Saving results as a HTML report
validate_if

Verify if expression regarding data is TRUE
validate

Prepare data for validation chain
parse_errors_to_df

Parse errors to data.frame
make_table_row

Create table row.
validate_cols

Validation on columns
parse_successes_to_df

Parse successes to data.frame
data_validation_report

Create new validator object
add_results

Add validation results to the Report object
find_first_noncall

Create a recursive function to find the first non-call object
get_results

Get validation results
create_summary_row

Create summary table row.
get_semantic_report_ui

Generate HTML report.
check_assertr_expression

Defensive wrapper to add evaluation error to regular validation errors.
display_results

Displays results of validations.
get_assert_method

Match proper method depending on predicate type
make_accordion_element

Create a UI accordion element.
convert_error_df

Convert error table column types
get_first_name

Extract the name of the initial data object in a magrittr pipe chain
error_class

Constants
generate_id

Generate a random ID.
make_summary_table

Create summary table.
is_complex_command

Check if a command is complex, i.e, contains any non-alphanumeric character
get_assertion_type

get assertion type
make_accordion_container

Create a UI accordion container.