Learn R Programming

finalfit (version 1.0.8)

round_tidy: Round values but keep trailing zeros

Description

e.g. for 3 decimal places I want 1.200, not 1.2.

Usage

round_tidy(x, digits)

Value

Vector of strings.

Arguments

x

Numeric vector of values to round

digits

Integer of length one: value to round to.

Examples

Run this code
round_tidy(0.01023, 3)

Run the code above in your browser using DataLab