parse_single_url: Parse a NIH Grant Page for Key Dates and Metadata

View source: R/nih_grant_scraper.R

parse_single_urlR Documentation

Parse a NIH Grant Page for Key Dates and Metadata

Description

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

Usage

parse_single_url(url)

Arguments

url

A character string containing the URL of the NIH grant opportunity page.

Value

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.

Examples

## Not run: 
  # Example URL:
  url <- "https://grants.nih.gov/grants/guide/pa-files/PAR-25-362.html"
  parse_single_url(url)

## End(Not run)


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