dround: dround

View source: R/misc.R

droundR Documentation

dround

Description

Trim to a certain number of digits (similar to 'format(...,digits=digits)', except that the output remains numeric)

Usage

dround(x, digits = 3, roundGreaterThan1 = FALSE)

Arguments

x

A vector of numeric values, or a data.frame or similar

digits

The number of digits to keep

roundGreaterThan1

Whether to trim also numbers greater than 1 (default FALSE)

Value

A object of same dimensions as 'x'

Examples

dround( c(0.00002345, 554356, 12.56) )

ETHZ-INS/enrichMiR documentation built on July 20, 2024, 12:03 a.m.