parse_nih_due_dates: Parse Multiple NIH Grant Pages and Combine Key Dates Data

View source: R/nih_grant_scraper.R

parse_nih_due_datesR Documentation

Parse Multiple NIH Grant Pages and Combine Key Dates Data

Description

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.

Usage

parse_nih_due_dates(urls)

Arguments

urls

A character vector of NIH grant opportunity page URLs.

Details

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").

Value

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.

Examples

## 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)


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.