roundDT: Round the numeric columns of a DT

Description Usage Arguments Value Examples

View source: R/shiny-utils.R

Description

Round the numeric columns of a DT

Usage

1
roundDT(x, digits = 3)

Arguments

x

a DT::datatable

digits

the number of digits to round. If NA, then no rounding is performed

Value

a rounded DT::datatable

Examples

1
2
3
4
5
## Not run: 
df <- data.frame(a=rnorm(10), b=sample(letters, 10), c=rnorm(10))
roundDT(datatable(df),  digits=2)

## End(Not run)

lianos/multiGSEA.shiny documentation built on Sept. 15, 2020, 10:45 p.m.