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)

eatTools documentation built on Nov. 28, 2026, 5:06 p.m.