prettyround: Return a rounded vector with equal number of digits

Description Usage Arguments Details Value Examples

View source: R/prettyround.R

Description

prettyround Return a formatted version of the numeric vector.

Usage

1
prettyround(p, r = 3)

Arguments

p

Vector of numerical values

r

Integer indicates the number of digits to round to

Details

No detail.

Value

Return a formatted vector with rounded numbers

Examples

1
prettyround(c(-0.05,0.001,0.00001),3)

ClinReport documentation built on Sept. 3, 2019, 5:07 p.m.