View source: R/read_registry.R
read_registry | R Documentation |
Returns the data for the given registry structure - agencyid:id(version).
read_registry(structure, tidy = FALSE, ...)
## S3 method for class 'eds_registry'
tidy_data(x, ...)
structure |
structure type. One of | ||||||||||
x |
A raw API return object to be tidied. Can also be done directly in | ||||||||||
... |
Further Optional arguments:
| ||||||||||
tidy |
logical. Return data and metadata in tidy data.table's (see Value), by passing the result through |
An EconData account (http://econdata.co.za) is required to use this function. The user must provide an API token that can be found on the Account page of the online portal, a GUI dialog will prompt the user for their API token. Credentials can also be supplied by setting the ECONDATA_CREDENTIALS environment variable using the syntax: "client_id;client_secret", e.g. Sys.setenv(ECONDATA_CREDENTIALS="client_id;client_secret")
, when available.
If tidy = FALSE
, a list detailing at a minimum the structure's agencyid, id, version, name, and description, as well as a data.frame with rows containing the data of any child structures.
write_registry
## Not run:
# library(econdatar)
# Frequency codelist
CL_FREQ <- read_registry("codelist", id = "CL_FREQ")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.