Rdt: A wrapper for 'DT::datatable()'.

View source: R/Rdt.R

RdtR Documentation

A wrapper for DT::datatable().

Description

A wrapper for DT::datatable() with added default settings for quickly displaying html datatables.

Usage

Rdt(x, caption = deparse(substitute(x)), rownames = FALSE, class = c("row-border"), filter = 'none', options = list(pageLength = 300, lengthMenu = c(200, 500, 1000, 1500), info = TRUE, dom = 'tip', ...), ...)

Arguments

x

a data object (either a matrix or a data fram)

caption

String value for table caption. Currently, the default is the user's label for x.

rownames

Logical (FALSE). Should the output include the rownames of x as the first column?

Details

See ?DT::datatable.

Value

Returns an HTML datatable.

Author(s)

Rachel M. Smith

References

See ?DT::datatable and http://rstudio.github.io/DT.

See Also

DT::datatable

Examples

x <- data.frame(y = seq(1:26), z = letters)
Rdt(x)

EccRiley/Riley documentation built on Feb. 15, 2024, 9:29 a.m.