pN: pN

Description Usage Arguments Value Examples

View source: R/scripts.R

Description

Pretty number. Rounding if r is not NULL. If abs(x) is less than 1.5, rounding changes keeping 2 significant digits.

Usage

1
pN(x, suff = "", r = NULL)

Arguments

x

vector of number

suff

suffix to add

r

number of digits after the decimal point. If NULL - no rounding.

Value

vector of strings

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.