Learn R Programming

biogeo (version 1.0)

outliers: Detects outliers using values extracted from an environmental variable

Description

Calculates the outliers using the reverse jackknife procedure (see rjack) and boxplot statistics (using boxplot.stats). If the value lies 1.5 times beyond the length of the box in the boxplot then it is considered to be an outlier. This function is used by errorcheck.

Usage

outliers(rid, species, dups, ev)

Arguments

rid
row identifier created in errorcheck
species
column of species names
dups
a column of zeros and ones, where ones indicate duplicates
ev
the values of the environmental variable

Value

See Also

errorcheck, boxplot.stats, rjack

Examples

Run this code
rid<-1:20
species<-rep("Species A",20)
dups=rep(0,20)
ev<-c(rnorm(19,mean=20,sd=1),40)
a<-outliers(rid, species, dups, ev)

Run the code above in your browser using DataLab