knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

search_awards is meant to be the top-level function for interacting with grant database search functions.

Load awardFindR

library(awardFindR)

Simple keyword search, single source

nsf <- search_awards(keywords="illicit", sources="nsf", from_date="2023-01-01")
str(nsf)

Multiple sources and keywords, specific date range

nsf_and_nih <- search_awards(keywords=c("ontological", "audio recordings"), sources=c("nsf", "nih"), from_date="2018-01-01", to_date="2018-02-01")
table(nsf_and_nih$source)
unique(nsf_and_nih$keyword)

For more than a few keywords, you can specify an external simple csv file. If you specify a .csv file path for keywords, the file should be a list of keywords, one string per line. For example:

qualitative data
qualitative analysis
case study
case studies


PESData/awardsBot documentation built on March 27, 2024, 3:40 a.m.