View source: R/nih_grant_scraper.R
parse_nih_due_dates | R Documentation |
This function takes a vector of NIH grant opportunity page URLs, calls parse_single_url
for each URL to extract both deadline information and associated metadata,
and then combines the results into a single wide-format tibble.
The resulting tibble contains the following metadata columns:
\itemurlThe grant page URL.
\itemfonFunding Opportunity Number.
\itemgrant_titleThe title of the funding opportunity.
\itemactivity_codeActivity code (e.g., R01, R21).
\itemearly_investigatorIndicator ("Yes"/"No") for early investigator targeting.
parse_nih_due_dates(urls)
urls |
A character vector of NIH grant opportunity page URLs. |
In addition, the tibble includes one column per unique deadline date (formatted as YYYY-MM-DD) with cell values indicating the deadline type ("NEW" or "AIDS").
A tibble in wide format with one row per grant. The left-hand side columns contain metadata, and the remaining columns represent the deadlines for that grant.
## Not run:
urls <- c("https://grants.nih.gov/grants/guide/pa-files/PAR-25-362.html",
"https://grants.nih.gov/grants/guide/pa-files/PAR-23-198.html")
parse_nih_due_dates(urls)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.