Learn R Programming

crane (version 0.1.0)

roche_pvalue: Round p-values

Description

Round p-values

Usage

roche_pvalue(
  x,
  big.mark = ifelse(decimal.mark == ",", " ", ","),
  decimal.mark = getOption("OutDec"),
  ...
)

label_roche_pvalue( big.mark = ifelse(decimal.mark == ",", " ", ","), decimal.mark = getOption("OutDec"), ... )

Value

A character vector of rounded p-values

Arguments

x

(numeric)
Numeric vector of p-values.

big.mark

(string)
Character used between every 3 digits to separate hundreds/thousands/millions/etc. Default is ",", except when decimal.mark = "," when the default is a space.

decimal.mark

(string)
The character to be used to indicate the numeric decimal point. Default is "." or getOption("OutDec")

...

Arguments passed on to base::format()

Examples

Run this code
x <- c(0.0000001, 0.123456)

roche_pvalue(x)
label_roche_pvalue()(x)

Run the code above in your browser using DataLab