roche_pvalue: Round p-values

View source: R/label_roche.R

roche_pvalueR Documentation

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"),
  ...
)

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()

Value

A character vector of rounded p-values

Examples

x <- c(0.0000001, 0.123456)

roche_pvalue(x)
label_roche_pvalue()(x)

crane documentation built on April 12, 2025, 2 a.m.