View source: R/helpFunctions.R
starsVector | R Documentation |
This function assigns stars (associated with different significance levels) to p-values.
starsVector(p_value)
p_value |
vector of values between 0 and 1 representing p-values. |
Three stars are assigned to p-values not greater than 0.01. Two stars are assigned to p-values greater than 0.01 and not greater than 0.05. One star is assigned to p-values greater than 0.05 and not greater than 0.1.
The function returns a string vector of stars assigned according to the rules described in 'Details' section.
p_value <- c(0.002, 0.2, 0.03, 0.08)
starsVector(p_value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.