roundDF: Round down a data frame

Description Usage Arguments Value See Also Examples

View source: R/getIn.R

Description

Tiny function just to round down a data frame for display in a table.

Usage

1
roundDF(df, decimals = 2)

Arguments

df

A data frame to input

decimals

The number of decimal places to round to (default 2)

Value

A data frame, with any numeric columns rounded to the specified amount.

See Also

Examples

1
roundDF( as.data.frame(matrix(runif(20),10,2)), decimals = 3)

COINr documentation built on Nov. 30, 2021, 9:06 a.m.