Skip to content

holmesjoli/validR

Repository files navigation

Valid R

Codacy Badge Build status Codecov test coverage

The validR package is a series of tests used for data validation.

Tests

Column-level tests

General Tests

  • test_unique: tests the uniqueness of a dataframe column/series
  • test_values: tests the values of a dataframe column/series against the expected values
  • test_na: tests that there are no null values in adataframe column/series
  • test_type: tests that the type is equal to the expected column type. Expected type can take on the following values: char_string, string, str, number, numeric, integer, int, float, flt, double, complex, boolean, bool, datetime, date.

Boolean Tests

  • test_all_true: tests all values of a dataframe column/series are true
  • test_all_false: tests all values of a dataframe column/series are false
  • test_any_true: tests some values of a dataframe column/series are true
  • test_any_false: tests some values of a dataframe column/series are false

Numeric tests

  • test_exclu_upper: tests all values in a dataframe column/series are less than the specified upper bound
  • test_inclu_upper: tests all values in a dataframe column/series are less than or equal to the specified upper bound
  • test_exclu_lower: tests all values in a dataframe column/series are greater than the specified lower bound
  • test_inclu_lower: tests all values in a dataframe column/series are greater than or equal to the specified lower bound
  • test_inclu_lower_inclu_upper: tests all values are in a dataframe column/series are less than or equal to the upper bound and greater than or equal to the lower bound
  • test_exclu_lower_exclu_upper: tests all values in a dataframe column/series are less than the upper bound and greater than the lower bound
  • test_exclu_lower_inclu_upper: tests that all values in a dataframe column/series are less than or equal to the upper bound and greater than the lower bound
  • test_inclu_lower_exclu_upper: tests that all values in a dataframe column/series are less than the upper bound or greater than or equal to the lower bound

About

Provides a set of functions to help validate data expectations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages