checkDatamodel: Check data against a datamodel

Description Usage Arguments Value See Also

View source: R/checkDatamodel.R

Description

Categorical variables in dat which also occur in E are checked against the datamodel for those variables. Numerical variables are checked against edits in E that contain only a single variable (e.g. x > 0). Values violating such edits as well as empty values are set to adapt.

Usage

1
checkDatamodel(E, dat, weight = rep(1, ncol(dat)), ...)

Arguments

E

an object of class editset, editarray, or editmatrix

dat

a data.frame

weight

vector of weigths for every variable of dat or an array of weight of the same dimensions as dat.

...

arguments to be passed to or from other methods

Value

An object of class errorLocation.

See Also

errorLocation, localizeErrors.


editrules documentation built on May 20, 2017, 3:18 a.m.

Search within the editrules package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.