codelist 'method' gets all possible values of the attribute, including non-related to the data/table considered #191
Unanswered
maxecharel
asked this question in
Q&A
Replies: 1 comment
-
Yes we take the codelist as provided by the service. You may need to
contact data provider to seek for clarifications.
Le lun. 13 févr. 2023 à 13:42, maxecharel ***@***.***> a
écrit :
… Hi again; exploring the direct and indirect functionalities of the
package, I checked the possibility of generating a codebook.
Following the rsdmx vignette, I've tried:
dsdUrl <- "https://stats.oecd.org/restsdmx/sdmx.ashx/GetDataStructure/SNA_TABLE1"
dsd <- readSDMX(dsdUrl)
cls <- slot(dsd, "codelists")
codelists <- sapply(slot(cls, "codelists"), function(x) slot(x, "id"))
codelist <- as.data.frame(slot(dsd, "codelists"), codelistId = "CL_SNA_TABLE1_UNIT")
SNA_TABLE1 is about GDP, but still for CL_SNA_TABLE1_UNIT I get values
such as:
[image: extract_units_gdp_table]
<https://user-images.githubusercontent.com/61969138/218459271-2a07404c-f5f2-4755-8f65-fa978f967666.png>
So it seems that it extracts all the possible values of the UNIT
attribute independently of the values used in the specified table. I
suspect that it is a limitation of the API (same problem with Eurostat) and
is not due to the procedure suggested in the vignette, but I wanted to be
absolutely sure. Thx!
—
Reply to this email directly, view it on GitHub
<#190>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDK3FNLRN4FK4WHINLLUTWXIT37ANCNFSM6AAAAAAU2G3OAY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi again; exploring the direct and indirect functionalities of the package, I checked the possibility of generating a codebook.
Following the
rsdmx
vignette, I've tried:SNA_TABLE1
is about GDP, but still forCL_SNA_TABLE1_UNIT
I get values such as:So it seems that it extracts all the possible values of the
UNIT
attribute independently of the values used in the specified table. I suspect that it is a limitation of the API (same problem with Eurostat) and is not due to the procedure suggested in the vignette, but I wanted to be absolutely sure. Thx!Beta Was this translation helpful? Give feedback.
All reactions