is.DOI: Does a string contain a DOI, and extract it

Description Usage Arguments Value

Description

Basically just regular expressions, wrapped in a function to simplify adaptations DOIify also converts to lowercase to ease comparisons. If an ID that is not a DOI is passed to DOIify it is returned unaltered. An ID is seen as a DOI when it satisfies the regular expression "10.\.[0-9]4,5/"

Usage

1
2
3
is.DOI(ID)

DOIify(ID)

Arguments

ID

Character vector of IDs to process

Value

for is.DOI: a logical of length(ID) for DOIify: a character vector of length(ID) with the bare DOIs (starting with 10.). If ID contains non-DOIs they are returned unaltered


EmilBode/NARCISOAFunc documentation built on May 15, 2019, 1:57 a.m.