Learn R Programming

varian (version 0.2.2)

pval_smartformat: nice formatting for p-values

Description

nice formatting for p-values

Usage

pval_smartformat(p, d = 3, sd = 5)

Arguments

p
a numeric pvalue
d
the digits less than which should be displayed as less than
sd
scientific digits for round

Examples

Run this code
varian:::pval_smartformat(c(1, .15346, .085463, .05673, .04837, .015353462,
  .0089, .00164, .0006589, .0000000053326), 3, 5)

Run the code above in your browser using DataLab