dot-roundIt: Round to at least n decimal places.

Description Usage Arguments Value

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

1
.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.


twoddpcr documentation built on Nov. 8, 2020, 5:49 p.m.