DT_format: Format a Javascript DataTable

Description Usage Arguments Value Note Author(s) Examples

View source: R/DT_format.R

Description

Format a data.frame to display using datatable in the DT library

Usage

1
DT_format(x, authors = 3, issue = FALSE, links = TRUE)

Arguments

x

Europe PMC search results

authors

Number of authors to display before adding et al.

issue

Include issue number with journal citation

links

Add html links to PubMed ID, Journal, and Cited by counts, default TRUE

Value

a data.frame with pmid, authors, year, title, journal and cited by counts

Note

Requires the DT package for displaying tables

Author(s)

Chris Stubben

Examples

1
2
3
4
5
6
7
8
data(yp)
DT_format(yp[6:8,])
## Not run: 
x1 <- DT_format(yp)
library(DT)
datatable(x1, escape = c(1,5) , caption= "Publications with Yersinia pestis virulence in title")

## End(Not run)

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