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 May 29, 2024, 6:03 a.m.