Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getFAO doesn't download any data for domain FT #11

Open
paulrougieux opened this issue Mar 31, 2014 · 1 comment
Open

getFAO doesn't download any data for domain FT #11

paulrougieux opened this issue Mar 31, 2014 · 1 comment

Comments

@paulrougieux
Copy link
Contributor

' I updated to the latest version of FAOSTAT

library(devtools)
install_github(repo = "FAOSTATpackage", username = "mkao006", subdir = "FAOSTAT")

' item code 1651 is present in both FO and FT domain tables

subset(FAOmetaTable$itemTable, itemCode==1651)

' Element code 5616 is present in both FO and FT domain tables

subset(FAOmetaTable$elementTable, elementCode==5616)

' Download works in domainCode = "FO"

' 1651 Ind Rwd Wir (C) 5616 Import Quantity(m3)

rwd <- getFAO(name = "varName", domainCode = "FO", itemCode = 1651, elementCode = 5616)
head(rwd)

' But dowload doesn't work for FT, bilateral trade

' Ind Rwd Wir (C) Import Quantity(m3)

rwd_bilateral <- getFAO(name = "varName", domainCode = "FT", itemCode = 1651, elementCode = 5616)

' Trying to use the more elaborate function getFAOtoSYB()

rwd_bilateral <- getFAOtoSYB(name = "varName", domainCode = "FT", itemCode = 1651, elementCode = 5616)

' "The specified query has no data, consult FAOSTAT"

@jonrobinson2
Copy link

Am working with the package today. There are many domain's that do not have data populated. Maybe remove calls by running through the combinatorial expansion of domain, items, etc that are empty? This would be nice.

Related question, why are some items empty?

paulrougieux added a commit to paulrougieux/FAOSTATpackage that referenced this issue May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants