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

Out of date API? #24

Open
swood-ecology opened this issue Jun 30, 2017 · 1 comment
Open

Out of date API? #24

swood-ecology opened this issue Jun 30, 2017 · 1 comment

Comments

@swood-ecology
Copy link

swood-ecology commented Jun 30, 2017

I'm having trouble pulling data from TM with the getFAOtoSYB(). I run the following search to get the appropriate TM codes:

FAOsearch() # 2; 3; 0; All; 4

I then pass the results to the getFAOtoSYB function:

getFAOtoSYB(query = .LastSearch)

I end up with the following errors:

getFAOtoSYB(query = .LastSearch)

                ------------------------------------------                     
                ** FAOSTAT Data Download (422 in Total) **                     
                ------------------------------------------                     

(1): Downloading variable Detailed trade matrix_Wool, hair waste_Import Quantity (tonnes) ...
Error in faoData$FAOST_CODE : $ operator is invalid for atomic vectors
[1] 1
Error : $ operator is invalid for atomic vectors
[1] 2
Error : $ operator is invalid for atomic vectors
[1] 3
Error : $ operator is invalid for atomic vectors
[1] 4
...

@paulrougieux
Copy link
Contributor

paulrougieux commented Aug 22, 2017

See Filippo's commend in issue #23

I updated this gist which provides two functions

  1. download_faostat_bulk loads zip files from the FAOSTAT bulk download
  2. read_faostat_bulk reads the data in data frames.

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