Compares a tabular data dictionary to a tabular dataset and summarizes discrepancies in a data frame. The input data dictionary must be formatted to a template.
Examples
# Import tabular data dictionary as data frame
path<-system.file("extdata", "e.g.dictionary.xlsx", package = "mdJSONdictio")
input.dxnry<-readxl::read_excel(path = path)
# Import tabular dataset as data frame
path<-system.file("extdata", "e.g.dataset.csv", package = "mdJSONdictio")
input.data<-read.csv(file = path, na.strings = "", stringsAsFactors = FALSE)
# Validate data frame against data frame
all.warnings<- validate.table(x = input.dxnry, y = input.data)
# Export table to disk
write.csv(x = all.warnings, file = "e.g.warnings2.csv")