View source: R/nih_grant_scraper.R
parse_single_url | R Documentation |
This function reads an NIH grant opportunity webpage from a given URL and extracts the key deadlines from the 'Key Dates' table as well as relevant metadata such as the Funding Opportunity Number (FON), grant title, activity code (with a fallback from the title if missing), and an indicator for early investigator status (including checks for "early investigator", "early stage", "early-stage", or "ESI").
parse_single_url(url)
url |
A character string containing the URL of the NIH grant opportunity page. |
A tibble with one or more rows containing deadline information and associated metadata. The returned tibble contains the following columns:
url |
The URL of the grant page. |
date |
The parsed deadline date (Date object). |
type |
The deadline type (e.g. "NEW" or "AIDS"). |
fon |
The Funding Opportunity Number. |
grant_title |
The title of the funding opportunity. |
activity_code |
The activity code (e.g. R01, R21); extracted from the usual location or, if missing, from the grant title. |
early_investigator |
Indicator ("Yes"/"No") showing if the opportunity is targeted to early investigators. |
## Not run:
# Example URL:
url <- "https://grants.nih.gov/grants/guide/pa-files/PAR-25-362.html"
parse_single_url(url)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.