FAOSTATpackage icon indicating copy to clipboard operation
FAOSTATpackage copied to clipboard

getFAO doesn't download any data for domain FT

Open paulrougieux opened this issue 10 years ago • 1 comments

' 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"

paulrougieux avatar Mar 31 '14 11:03 paulrougieux

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?

jonrobinson2 avatar May 03 '14 21:05 jonrobinson2