View source: R/write_econdata.R
write_econdata | R Documentation |
Saves the data set for the given dataflow - agencyid:id(version) and data provider - agencyid:id, as a list. Available data sets can be looked up from the data registry (http://www.econdata.co.za/FusionRegistry).
write_econdata(db, ...)
db |
Data set to upload. | |||||||||||||||||||||||||||||||||
... |
Further Optional arguments, if encoded in database metadata:
|
An EconData account (http://app.econdata.co.za) is required to use this function. The user must provide their credentials either through the function arguments, or by setting the ECONDATA_CREDENTIALS environment variable using the syntax: "username;password". If credentials are not supplied by the aforementioned methods a GUI dialog will prompt the user for credentials.
The functionality provided by write_econdata is to save the data set described by the function arguments. As this makes modifications to the database the user calling this function requires higher privileges than needed for other econdatar functions - determined by the correct data set role (owner). You can look up user roles for a given data set on the EconData app.
read_econdata
## Not run: db <- read_econdata("BA900", nameby="CODE") write_econdata(db, "ECONDATA", "BA900", "1.0", "ECONDATA", "SARB", file = "ba900.json") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.