bootstrap: Bootstrap Species Richness Estimator

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Computes the bootstrap species richness estimator for abundance or presence-absence data

Usage

1
bootstrap(x, taxa.row = TRUE, abund = TRUE, samples = NA)

Arguments

x

a vector, matrix or data frame of positive integers or zero of any size

taxa.row

whether each row of the matrix is a different taxon

abund

whether the input is abundance (or presence/absence) based

samples

if input is a vector file, the number of samples must be included

Details

The bootstrap estimator

Value

Returns a single value for the Bootstrap Species Estimator

Author(s)

Matthew Vavrek

References

Smith, E.P. & van Belle, G. 1984. Nonparametric estimation of species richness. Biometrics 40, 119-129.

See Also

jack1, ACE, chao1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## sample vector
a<-c(0,5,1,1,2,0,0,1,0,0,8,45)
bootstrap(a,samples=45)

## matrix format
a<-matrix(c(0,5,1,1,2,0,0,1,0,0,8,45),4,3)
bootstrap(a)
bootstrap(a,,FALSE)


## presence absence matrix
a<-matrix(c(0,1,1,1,1,0,0,1,0,0,1,1),4,3)
bootstrap(a,,FALSE)

Example output

Loading required package: sp
Loading required package: maps
Loading required package: shapefiles
Loading required package: foreign

Attaching package: 'shapefiles'

The following objects are masked from 'package:foreign':

    read.dbf, write.dbf

[1] 10.86177
attr(,"method")
[1] "Bootstrap"
[1] 4.136541
attr(,"method")
[1] "Bootstrap"
[1] 4.62963
attr(,"method")
[1] "Bootstrap"
[1] 4.62963
attr(,"method")
[1] "Bootstrap"

fossil documentation built on March 23, 2020, 5:06 p.m.