Learn R Programming

tidypmc (version 2.0)

extract_acronyms: Find acronyms in parentheses

Description

This function searches for words preceding the acronym that start with the same initial letter and will likely fail in many situations.

Usage

extract_acronyms(txt)

Value

A tibble with acronyms

Arguments

txt

A tibble from pmc_text or character vector

Author

Chris Stubben

Examples

Run this code
txt <- c(
  "An acronym like multinucleated giant cell (MGC)",
  "is later mentioned as MGC in the paper.")
extract_acronyms(txt)

Run the code above in your browser using DataLab