as.scitation: Coerce things to scitations

View source: R/as.scitation.R

as.scitationR Documentation

Coerce things to scitations

Description

Coerce things to scitations

Usage

as.scitation(x)

Arguments

x

input

Examples

## 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 18, 2022, 8:31 p.m.