read_release | R Documentation |
Returns the dataset releases for the given dataflow - agencyid:id(version) and data provider - agencyid:id, as a list. A number of utilities are provided to filter only the releases of interest, detailed below.
read_release(id, ..., tidy = FALSE)
id |
Data identifier. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
... |
Further Optional arguments:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
tidy |
logical. Return releases in a tidy data.table (see Value) with |
Specifying the full dataflow and data provider details (as opposed to only using the data id) allows more fine-grained control over the data set being queried. This is not necessary if there is only a single definition of the data and a single provider, which is typically the case.
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.
If tidy = FALSE
, a nested lists containing metadata and release desciption and dates. If tidy = TRUE
, a (list of) data.table(s) providing release information, with metadata attached as an attribute.
write_release
## Not run: # library(econdatar) # Sys.setenv(ECONDATA_CREDENTIALS="username;password") # Ids see: https://www.econdata.co.za/FusionRegistry/data/datastructure.html # Bank Balance Sheet (institutional) BA900_RELEASE <- read_release(id = "BA900") # Same as: read_release(id = "BA900", tidy = TRUE) econdata_tidy(BA900_RELEASE, release = TRUE) # No further options supported. # Releases for all CPI Revisions read_econdata(id = "CPI_ANL_SERIES", tidy = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.