Skip to content

arturochian/validate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status CRAN Downloads

Easy data validation for the masses.

The validate R-package makes it super-easy to check whether data lives up to expectations you have based on domain knowledge. It works by allowing you to define data validation rules independent of the code or data set. Next you can confront a dataset, or various versions thereof with the rules. Results can be summarized, plotted, and so on. Below is a simple example.

> library(validate)
> library(magrittr)
> iris %>% check_that(Sepal.Width < 0.5*Sepal.Length) %>% summary()
  rule items passes fails nNA error warning                       expression
1   V1   150     79    71   0 FALSE   FALSE Sepal.Width < 0.5 * Sepal.Length

To get started, please read our Introductory vignette.

With validate, data validation rules are treated as first-class citizens. This means you can import, export, annotate, investigate and manipulate data validation rules in a meaninful way. See this vignette for rule import/export.

Resources

Installation

The latest release can be installed from the R command-line

install.packages("validate")

Beta versions of the package can be installed through our drat repository. If it is not yet installed on your system, first install Dirk Eddelbuettel's drat package.

install.packages("drat")

Next, install validate as follows.

drat::addRepo("data-cleaning")
install.packages("validate")

Note that the beta version can contain bugs and interfaces that may not be stable..

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 79.9%
  • JavaScript 15.8%
  • R 4.1%
  • Other 0.2%