R tools to access, use, and visualize data
Description:
R code to access GBADs Public API. Currently supported - livestock population numbers from OIE and FAOSTAT QCL dataset
Dependencies:
library(RCurl)
library(httr)
Functions:
get_all_tables
- Lists all available tables in the API
livestock_population
- Accepts
year
,country
,species
,source
anddestfile
as parameters where source is either oie or faostat - Default destination file for downloaded data is output.csv
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.