as.scitation: Coerce things to scitations

Description Usage Arguments Examples

View source: R/as.scitation.R

Description

Coerce things to scitations

Usage

1

Arguments

x

input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Not run: 
# with rcrossref
library("rcrossref")
res <- cr_works(limit = 10)
res$data$type <- "article"
as.scitation(res$data) 

# self
x <- scitation(
 "article", 
 'petkun2016', 
 doi = "10.7717/peerj.1126",
 author = "foobar",
 title = "That and this and stuff and things",
 journaltitle = "Stuff And Things",
 year = 2001
)
as.scitation(x)

# data.frame
df <- scitation_df(x)
as.scitation(df)

# a doi
as.scitation("10.7717/peerj.1126")

## End(Not run)

ropenscilabs/scitations documentation built on May 25, 2017, 3:47 p.m.