Translates a data frame of a tabular data dictionary into an list object that can be subsequently converted to mdJSON and imported to mdEditor as a Dictionary Record. The input tabular 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.table<-readxl::read_excel(path = path)
# Translate data frame to list
new.list<- mdJSONdictio::build.mdJSON(x = input.table, title = "Example Dictionary")
# Convert list to JSON
new.json = rjson::toJSON(x = new.list)
# Export JSON to disk
write(x = new.json, file = "e.g.dictionary.json")