extract.counts: Get species data from a CES datset

View source: R/extract.counts.R

extract.countsR Documentation

Get species data from a CES datset

Description

Extracts catch data for a particular species from a CES object, usually called through extract.data.

Usage

extract.counts(cesobj, species=0, age=0, plots=NULL)

Arguments

cesobj

A dataframe containing CES data usually generated by /codereadces

species

Species for which to extract data. This should be a standard Euring numeric code, for example Turdus merula would be 11870 (note the last digit, to indicate race, should always be zero). If species=0, summarises catch total across all species.

age

Euring age code 3 for juveniles and 4 for adults, any other value is an error.

plots

An object indicating which sites were covered in each year. Normally this would be generated by extract.coverage, if it is absent the coverage data will be extracted silently.

Value

A datatframe containing the number of birds caught at each site in each year. Usually with an identifier for the species to which the data refer.

Author(s)

Rob Robinson

See Also

extract.data


btorobrob/cesr documentation built on June 9, 2025, 5:39 a.m.