quants: quants used in apply to count the number > 1 in a vector

Description Usage Arguments Value Examples

View source: R/cpuefuncs.r

Description

quants used in apply to count the number > 1 in a vector designed to be used in apply

Usage

1
quants(invect)

Arguments

invect

vector of values

Value

a vector of the c(0.025,0.05,0.5,0.95,0.975) quantiles

Examples

1
2
3
4
x <- rnorm(100,mean=5,sd=1)
quants(x)
y <- matrix(x,nrow=10,ncol=10)
apply(y,2,quants)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.