tallyFishSpp: Tally PAWMAP Fish Species Composition Data.

View source: R/tallyFishSpp.r

tallyFishSppR Documentation

Tally PAWMAP Fish Species Composition Data.

Description

Tally PAWMAP Fish Species Composition Data.

Usage

tallyFishSpp(
  dfm,
  speciesIn = "common_name",
  sppLook = "Common_Name",
  by = "row",
  countFields = c("totNum", "numSurv"),
  station = "site_identifier",
  dateField = "collection_start_date",
  noFish = "fished_none_collected"
)

Arguments

dfm

The data frame containing fish counts

speciesIn

The field in dfm that identifies species

sppLook

Look up species traits by: "Common_Name" (default) or "Species_Name"

by

Are the data formatted one row per individual ('row'), or counts per species ('counts')?

countFields

Only used if by='count'. A vector of length 2 indicating the fields for total number of each species captured first, and the number of surveys on which they were captured second.

station

The field identifying the sampling station

dateField

The field identifying the sampling date

noFish

String of field name indicating the survey found no fish

Value

A table of fish species presence (number of surveys on which species was captured), and abundance (total number of individuals captured)


PDXChris/pmtools documentation built on March 26, 2024, 8:13 a.m.