.roundIt {twoddpcr}R Documentation

Round to at least n decimal places.

Description

For a data frame, if an extry is < 1, then round it to n significant figures. If it is >= 1, then round it to n decimal places.

Usage

.roundIt(df, n = 3)

Arguments

df

A data frame.

n

How many decimal places/significant figures to round to.

Value

The data frame x with rounded entries.


[Package twoddpcr version 1.17.0 Index]