Skip to content

Get the data structure of a particular database #197

Closed Answered by eblondel
luifrancgom asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I've updated the embedded OECD service provider (see #198). You can reinstall rsdmx from Github to use it.

To get the list of dataflows, you can do:

sdmx.dataflows <- readSDMX(providerId = "OECD", resource = "dataflow")
dataflows <- as.data.frame(sdmx.dataflows)

You will see in this list that each dataflow is associated with a data structure definition (DSD) identified by a dsdRef

To get a datastructure, you should pick this dsdRef and then query the datastructure. In your case, you interrogate dataflow DSD_REV_COMP_LAC@DF_RSLAC, the DSD is DSD_REV_COMP_LAC

dsdRef <- dataflows[dataflows$id == "DSD_REV_COMP_LAC@DF_RSLAC",]$dsdRef
sdmx.dsd <- readSDMX(providerId = "OECD", resource = "d…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by luifrancgom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants