round_data_frame: Round all numeric values found in a data.frame to a specified...

View source: R/rounding.R

round_data_frameR Documentation

Round all numeric values found in a data.frame to a specified number of decimal points

Description

Round all numeric values found in a data.frame to a specified number of decimal points

Usage

round_data_frame(df, digits = 2)

Arguments

df

A data.frame

digits

The number of decimal points to round all numeric values to

Details

Columns which are not numeric will be returned unmodified

Value

A data.frame identical to the input df but with all numerical values rounded


pbs-assess/gfutilities documentation built on Sept. 18, 2023, 7:57 a.m.