Learn R Programming

contentanalysis (version 0.2.1)

parse_references_section: Parse references section from text

Description

Parses a references section into individual entries with extracted metadata including authors, year, and title information.

Usage

parse_references_section(references_text)

Value

Tibble with columns:

  • ref_id: Unique reference identifier

  • ref_full_text: Complete reference text

  • ref_authors: Author string

  • ref_year: Publication year

  • ref_first_author: First author surname

  • ref_first_author_normalized: Lowercase first author

  • ref_second_author: Second author surname (if present)

  • ref_second_author_normalized: Lowercase second author

  • n_authors: Number of authors (99 = et al.)

Arguments

references_text

Character string. Text of references section.

Examples

Run this code
if (FALSE) {
refs_text <- doc$References
parsed_refs <- parse_references_section(refs_text)
}

Run the code above in your browser using DataLab