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

Specified query has no data, consult FAOSTAT #23

Open
luxusdata opened this issue Jan 5, 2017 · 5 comments
Open

Specified query has no data, consult FAOSTAT #23

luxusdata opened this issue Jan 5, 2017 · 5 comments

Comments

@luxusdata
Copy link

Hello,

I have an issue when trying to download data from FAOSTAT. A query has no data. Could you please confirm? Could it be fixed?

wheatYield = getFAOtoSYB(name = "wheatYield", domainCode = "QC",
itemCode = 15, elementCode = 5419)$entity

Thank you in advance.

@filippogheri
Copy link
Collaborator

Hi,
thanks for your message. The problem comes from the fact that FAOSTAT system has been completely reviewed and for this reason the query structure as constructed by the current R FAOSTAT package is no longer valid. I need to implement important changes to the package. I will try to do this as soon as possible.

Really sorry for any inconvenient this might have caused.

Cheers,

Filippo

@paulrougieux
Copy link
Contributor

paulrougieux commented Feb 16, 2017

In the mean time you can load FAOSTAT bulk data into R. For example I downloaded forestry data from the Forestry Production and Trade page.

 forestry <- read.csv(unz("data-raw/Forestry_E_All_Data_(Normalized).zip",
                     "Forestry_E_All_Data_(Normalized).csv"), stringsAsFactors = FALSE)

I have compared it to data I had stored last year with the FAOSTAT package. Sawnwood production values are the same except for a few changes for China (maybe due to the multiple China issue) and also some other countries for 2014 and 2015, probably due to update concerning those recent data points.

@thiagoveloso
Copy link

@filippogheri congratulations for your excellent work on the FAOSTAT package. I was just wondering if the recent errors could be fixed already?

I look forward to using this package again!

Cheers,
Thiago.

@ghost
Copy link

ghost commented Jun 9, 2017

any progress on updating the FAOSTAT package? it still doesnt seem to work.

@fbiga
Copy link

fbiga commented Oct 4, 2019

Here is a gist with a couple of functions which load faostat bulk data into R data frames:
https://gist.github.com/fbiga/0f94080bc9e645184a4368639b81d35a

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

5 participants