validate: Data Validation Infrastructure

> library(validate)
Error: package or namespace load failed for 'validate'

バージョン: 0.1.5


関数名 概略
[,expressionset-method Select a subset
aggregate,validation-method Aggregate validation results
barplot,validation-method Plot number of violations
cells Cell counts and differences for a series of datasets
check_that Simple data validation interface
compare Compare similar data sets
confront Confront data with a (set of) expressionset(s)
created Creation timestamp
created<- Set creation timestamp
created<-,expressionset,POSIXct-method Set timestamps
description description description
description<- Set description
description<-,expressionset,character-method Set descriptions
errors Get messages from a confrontation object
export_yaml Export to yaml file
label label description of rules
label<- Set label
label<-,expressionset,character-method Set labels
length Get object lenght
match_cells Create matching subsets of a sequence of data
names,expressionset-method Extract names
names<-,expressionset,character-method Set names
origin Origin of rules
origin<- Set origin
origin<-,expressionset,character-method Set origins
retailers data on Dutch retailers
sort,validation-method Aggregate and sort the results of a validation.
summary Create a summary
syntax Syntax to define validation or indicator rules
validate Data Validation Infrastructure
validation-class Store results of evaluating validating expressions
validator Define validation rules for data
values Get values from object
variables Extract variable names
voptions Set or get options globally or per object.

aggregate

> cf <- check_that(women, height > 0, weight > 0, height / weight < 0.5)
> validate::aggregate(cf, by = 'record')
Error in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/validate/libs/validate.so':
  `maximal number of DLLs reached...

check_that

Arguments

  • dat
  • ...
> checked <- iris %>% check_that(Sepal.Width < 0.5 * Sepal.Length)
> summary(checked)
   Mode   FALSE    NA's 
logical       1       0
> # barplot(checked)

confront

Arguments

  • dat
  • x
  • ref
  • ...
  • key
> (def.v <- validator(height > 70, weight <= 160, height / weight > 0))
Error in eval(expr, envir, enclos): could not find function "validator"
> confront(women, def.v) %>% {
+   print(.)
+   summary(.)
+ }
Error in eval(expr, envir, enclos): could not find function "confront"

validator

> (def.v <- validator(height > 0, weight > 0, height/weight > 0))
Error in eval(expr, envir, enclos): could not find function "validator"