outliers: Detects outliers using values extracted from an environmental...

Description Usage Arguments Value Note Author(s) See Also Examples

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

1
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

values of 1 if records is an outlier and zero if not in two columns. The first column is for the boxplot method and the second is for the reverse jackknife method.

Note

This function is only applied to a species if there are 10 or more records for that species.

Author(s)

Mark Robertson

See Also

errorcheck, boxplot.stats, rjack

Examples

1
2
3
4
5
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)

biogeo documentation built on May 1, 2019, 8:05 p.m.