Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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
)

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

Value

character vector

Examples

proportion2percentile(0.01111)

unusualprofile

Calculates Conditional Mahalanobis Distances

v0.1.0
GPL (>= 3)
Authors
W. Joel Schneider [aut, cre] (<https://orcid.org/0000-0002-8393-5316>), Feng Ji [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.