Skip to content

Instantly share code, notes, and snippets.

View iamtheghost's full-sized avatar
🎯
Focusing

J. W. iamtheghost

🎯
Focusing
  • University of Kentucky
View GitHub Profile
@doug-friedman
doug-friedman / getGrantsGovData
Last active July 1, 2019 04:19
An R function to scrape Grants.Gov Open Data.
## Scrape Grants.Gov Data using the API Query Parameters
## See http://docs.fbopen.apiary.io/ for details
## Specify keywords, whether you want to see noncompeted and/or closed grants,
## your API key, and whether or not you want to peek at the results first (see the first 10).
library(jsonlite, warn.conflicts=F)
library(RCurl, warn.conflicts=F)
getGrantsGovData = function(keywords=c(), showNonCompeted=TRUE, showClosed=TRUE, my.key="", peek=FALSE) {