Learn R Programming

rcrossref (version 0.3.0)

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)

## S3 method for class 'tdmurl': as.tdmurl(url, type, doi)

## S3 method for class 'character': 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
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)

Run the code above in your browser using DataLab