bib_format: Format a bibliography

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/bib_format.R

Description

Format Europe PMC search results into a bibliography

Usage

1
2
bib_format(x, authors = 3, issue = TRUE, links = FALSE,
  cited = FALSE, pmid = FALSE, number = FALSE)

Arguments

x

epmc_search results

authors

Number of authors to display before adding et al.

issue

Include issue number with citation

links

Add Markdown links to Journal, Cited by counts and PubMed ID, default FALSE

cited

Include Cited By:<count>

pmid

Include PubMed:<ID>

number

Number references in bibliography

Value

a vector

Note

Currently, the references are formatted using author, year, title and journal

Author(s)

Chris Stubben

See Also

strwrap for formatting

Examples

1
2
3
data(yp)
bib_format(yp[1:5,])
cat(strwrap(bib_format(yp[1:5,], number=TRUE, pmid=TRUE), exdent=3), sep="\n")

cstubben/euPMC documentation built on May 14, 2019, 12:25 p.m.