Learn R Programming

unusualprofile (version 0.1.4)

proportion2percentile: Rounds proportions to significant digits both near 0 and 1, then converts to percentiles

Description

Rounds proportions to significant digits both near 0 and 1, then converts to percentiles

Usage

proportion2percentile(
  p,
  digits = 2,
  remove_leading_zero = TRUE,
  add_percent_character = FALSE
)

Value

character vector

Arguments

p

probability

digits

rounding digits. Defaults to 2

remove_leading_zero

Remove leading zero for small percentiles, Defaults to TRUE

add_percent_character

Append percent character. Defaults to FALSE

Examples

Run this code
proportion2percentile(0.01111)

Run the code above in your browser using DataLab