Skip to contents

Check if an argument is a DOI string

Usage

is_doi(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid DOI string, FALSE otherwise.

Examples

is_doi("10.1038/nphys1170")
#> [1] TRUE