pval_sym: Create the p-value symbols from standard R summary functions

View source: R/pval_sym.R

pval_symR Documentation

Create the p-value symbols from standard R summary functions

Description

Creates a vector of the same length as the input with the standard codes for significance in R, as for example used in summary.lm

Usage

pval_sym(p.values)

Arguments

p.values

numeric p.values (between 0 and 1)

Value

Vector of symbols.

Examples


pval <- c(runif(10, 0, 0.2))
cbind(pval, pval_sym(pval))

mitmat/mitmatmisc documentation built on Aug. 22, 2024, 3:28 a.m.