round_df: Round the numeric columns in a data.frame

View source: R/round_df.R

round_dfR Documentation

Round the numeric columns in a data.frame

Description

Round the numeric columns in a data.frame

Usage

round_df(df, digits = 5)

Arguments

df

a data.frame

digits

the number of digits to round to

Value

a data.frame

Examples

x <- matrix(runif(10), nrow=10, ncol=10)
x <- as.data.frame(x)
y <- round_df(x, 2)

korkutlab/imogimap documentation built on March 17, 2023, 8:22 a.m.