df_round: Round numeric values in a data frame

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Round numeric values in a data frame

Usage

1
df_round(df, digits = 3)

Arguments

df

a data.frame

digits

number of digits to round to

Value

a copy of df with numeric fields rounded accordingly

Examples

1
2
df <- data.frame(A = c(0.1234, 0.123))
round_df(df, digits = 2)

knifecake/forrelgui documentation built on March 30, 2021, 10:26 p.m.