Learn R Programming

KEGGgraph (version 1.30.0)

pvalue2asterisk: Return common significance sign (asterisk) associated with given p value

Description

A p-value of 0.05, 0.01, 0.001 correspond to one, two or three asterisks. If 'sig.1' is set to TRUE, then the p-value of 0.1 returns '.'.

Usage

pvalue2asterisk(pvalues, sig.1 = FALSE)

Arguments

pvalues
A numeric value
sig.1
logical, whether the significance sign of 0.1 should be returned

Value

A character string containing the signs

Examples

Run this code
pvalue2asterisk(0.03)
pvalue2asterisk(0.007)
pvalue2asterisk(3e-5)
pvalue2asterisk(0.55)

Run the code above in your browser using DataLab