Learn R Programming

retractcheck (version 1.0.0)

find_doi: Find DOIs in strings

Description

Helper function to find DOIs in strings. Can occasionally erroneously extract DOIs (subset of another DOI for example). Regular expression based on CrossRef (http://bit.ly/doi-regex; see also check_doi).

Usage

find_doi(strings)

Arguments

strings

Vector of strings to check for DOIs

Value

Vector of DOIs

Examples

Run this code
# NOT RUN {
  find_doi('This contains 10.1111/j.1365-2044.2012.07128.x')
# }

Run the code above in your browser using DataLab