pjp_f_round_nice: round numbers nicely

View source: R/pjp_f_round_nice.R

pjp_f_round_niceR Documentation

round numbers nicely

Description

Ya lo he dicho round numbers nicely This function rounds data in a nice way. See: https://twitter.com/hspter/status/314858331598626816 Thanks Karl Broman!!

Usage

pjp_f_round_nice(..., digits = 2)

Arguments

digits

(digitos a mostrar, default=2)

Examples

 pjp_f_round_nice(c(-0.0002, 0.0002, 0.5, -0.5, -0.002), digits = 3)
 should return c("0.000", "0.000", "0.500", "-0.500", "-0.002")

perezp44/pjpv2020.01 documentation built on May 4, 2022, 11:37 p.m.