Learn R Programming

mads (version 0.1.6)

calculate.dht: Calculates the abundance for each species code including the unidentified codes if supplied.

Description

Calculates the abundance for each species code including the unidentified codes if supplied.

Usage

calculate.dht(
  species.name,
  species.field.name,
  model.index,
  ddf.results,
  region.table,
  sample.table,
  obs.table,
  dht.options
)

Arguments

species.name

character vector of species codes

species.field.name

character vector giving the field name of the ddf data that contains the species codes

model.index

named character vector which acts as a look up table for duplicate detection function models

ddf.results

a list of ddf objects

region.table

dataframe of region records - Region.Label and Area

sample.table

dataframe of sample records - Region.Label, Sample.Label, Effort

obs.table

dataframe of observation records with fields object, Region.Label, and Sample.Label which give links to sample.table, region.table and the data records used in model

dht.options

a list of the options to be supplied to mrds::dht

Value

a list of dht objects, one for each species code

See Also

mrds::dht