round_df: Round all numeric columns in dataframe

View source: R/formatters.R

round_dfR Documentation

Round all numeric columns in dataframe

Description

Rounds all numeric columns in dataframe, using the R default "half to even"

Usage

round_df(df, digits = 2)

Arguments

df

Dataframe to be rounded

digits

Number of digits, defaults to 2

Source

https://stackoverflow.com/questions/9063889/how-to-round-a-data-frame-in-r-that-contains-some-character-variables


LukasWallrich/timesaveR documentation built on Nov. 29, 2024, 4:47 a.m.