roundReal: Round all doubles in a data.frame

View source: R/roundReal.R

roundRealR Documentation

Round all doubles in a data.frame

Description

[Stable]

Rounds all doubles (skipping dates and POSIX) in a data.frame to a specified number of digits. Created to use with SQL tables that sometimes have small number rounding errors.

Usage

roundReal(df, digits = 5)

Arguments

df

Input data.frame to mutate

digits

Number of digits to round to. Default is 5.

Value

A data.frame/tibble

Examples


## Not run: 
iris %>% roundReal(0)

## End(Not run)
 

MARC-KC/marcR documentation built on June 2, 2022, 9:31 p.m.