This repository was archived on 13 December 2025 as part of a transition toward updated implementations that reflect current GBADs Informatics best practices.
The contents of this repository remain available for reference and reproducibility only. Development and maintenance have ceased, and no further updates are planned.
Ongoing and future work is implemented in active repositories within the GBADs Informatics GitHub organization, which incorporate improved standards for structure, documentation, versioning, and governance.
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,sourceanddestfileas 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.
