dspl(path, output = NA, replace = F, targetNamespace = "", timeFormat = "yyyy", lang = c("es", "en"), name = NA, description = NA, url = NA, providerName = NA, providerURL = NA, sep = ";", dec=".", encoding = getOption("encoding"), moreinfo = NA)output ZIP file is defined exists, dspl replaces it.lang list.nameXLConnect library.genMoreInfo that contains a dataframe of the dataset concepts with more specifications such as description, topic, url, etc.output defined, dspl returns list of class
"dspl".An object of class "dspl" is a list containing:
dsplsaveXML function.concepts.by.tabledimtabsslicesconceptsdimentionsstatisticsdspl that
among its contents has a xml object (DSPL file); otherwise, if an output is
defined, the results consists on two things, an already ZIP file containing a
all the necesary to be uploaded at publicdata.google.com (a collection of
csv files and the XML DSPL written file) and a message (character object).
Internally, the parsing process consists on the following steps: (1) Loading
the data, (2) generating each column corresponding id, (3) Identifying the data
types, (4) building concepts, (5) Identifying dimentional concepts and distinguishing
between categorical, geographical and time dimentions, and finally (6) executing internal
checks.
In order to properly load the zip file (DSPL file plus CSV data files), the
function executes a series of internal checks upon the data structure. The detailed
list:
dspl
may get confused, so during the parsing process, if there is a chance, it
collapses duplicated concepts into only one concept and assigns it the common
data type (float).
checkTimeFormat
ensures that the time format specified is compatible with DSPL.
## Not run:
# demo(dspl)
# ## End(Not run)
Run the code above in your browser using DataLab