ClinReport (version 0.9.1.1)

prettyround: Return a rounded vector with equal number of digits

Description

prettyround Return a formatted version of numeric vector.

Usage

prettyround(p, r = 3)

Arguments

p

Vector of numerical values

r

A numeric value that indicates the number of digits to round to

Value

Return a formatted vector with rounded numbers

Details

No detail.

Examples

Run this code
# NOT RUN {
prettyround(c(-0.05,0.001,0.00001),3)

# }

Run the code above in your browser using DataCamp Workspace