fiveSigma: Mean +/- 5*sd of a numerical vector

Description Usage Arguments Value Examples

View source: R/fiveSigma.R

Description

Used for score and ratio cut-off thesholding.

Usage

1
fiveSigma(numVec, greater = T, dropZero = T, verbose = F)

Arguments

numVec

numerical vector

greater

return(mean + 5sd). Else return(mean - 5sd). Default = T

dropZero

exclude values of zero from the calulation of mean/sd

verbose

prints values

Value

Numeric

Examples

1
2
3
4
5
6
7
8
fiveSigma( c(10,0,0,15,10) )

# Verbose output
fiveSigma(c(10,0,0,0,10,15), verbose = T)
#"The mean of the vector is: 11.6666666666667"
#"The standard deviation of the vector is: 2.88675134594813"
#"Five standard deviations from mean is: 26.1004233964073"
#26.10042

ababaian/RRNAframework documentation built on March 18, 2020, 1:29 a.m.