roundDF: Round a 'data.frame'.

View source: R/roundDF.R

roundDFR Documentation

Round a data.frame.

Description

Round all numeric variables in a data.frame, leave the other variables untouched. Column and row names are preserved.

Usage

roundDF(dat, digits = 3)

Arguments

dat

A data.frame.

digits

Integer indicating the number of decimal places.

Value

Returns the rounded data.frame.

Examples

roundDF(mtcars, digits = 0)

weirichs/eatTools documentation built on April 3, 2024, 6:11 p.m.