Description Usage Arguments Value Author(s) See Also Examples
Is this a datadict.profile object
1 |
x |
The object to be tested. |
boolean
Reinhard Simon
Other datadict: as.rules
;
as_rules
; datadict.profile
;
datadict_profile
;
has.ruleErrors
;
has_rule_errors
;
is.datadict.profile
;
prep4rep
; read.rules
;
read_rules
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | library(stringr)
# Get example data files
atable <- system.file("examples/db.csv", package = "datacheck")
arule <- system.file("examples/rules1.R", package = "datacheck")
aloctn <- system.file("examples/location.csv", package = "datacheck") # for use in is.oneOf
ctable <- basename(atable)
crule <- basename(arule)
cloctn <- basename(aloctn)
cwd <- tempdir()
owd <- getwd()
setwd(cwd)
file.copy(atable, ctable)
file.copy(arule, crule)
file.copy(aloctn, cloctn)
at <- read.csv(ctable, stringsAsFactors = FALSE)
ad <- read_rules(crule)
db <- datadict_profile(at, ad)
is_datadict_profile(db) == TRUE
db
setwd(owd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.