rnd: Sensible rounding for printing.

Description Usage Arguments Details Value Examples

View source: R/rnd.R

Description

Sensible rounding for printing.

Usage

1
rnd(x, digits = 3)

Arguments

x

A numeric vector

digits

Digits to round to. Default is 3.

Details

This is the rounding many are wanting for printing out results. For example, there will always be digits number of decimal places, and trailing zeros will be kept.

Value

A character vector suitable for printed output.

Examples

1
2
3
4

m-clark/tidyext documentation built on July 21, 2020, 2:36 a.m.