Learn R Programming

rcrossref (version 0.5.2)

as.tdmurl: Coerce a url to a tdmurl with a specific type

Description

Coerce a url to a tdmurl with a specific type

Usage

as.tdmurl(url, type, doi)
"as.tdmurl"(url, type, doi)
"as.tdmurl"(url, type, doi = NULL)

Arguments

url
A URL.
type
A document type, one of xml, pdf, or plain
doi
A DOI, optional, defaults to NULL

Examples

Run this code
## Not run: 
# as.tdmurl("http://downloads.hindawi.com/journals/bmri/2014/201717.xml", "xml")
# as.tdmurl("http://downloads.hindawi.com/journals/bmri/2014/201717.pdf", "pdf")
# out <- as.tdmurl("http://downloads.hindawi.com/journals/bmri/2014/201717.pdf", 
#    "pdf", "10.1155/2014/201717")
# attributes(out)
# ## End(Not run)

Run the code above in your browser using DataLab