addFishTraits: Add fish traits to a data frame of fish counts

View source: R/addFishTraits.r

addFishTraitsR Documentation

Add fish traits to a data frame of fish counts

Description

Add fish traits to a data frame of fish counts

Usage

addFishTraits(
  df,
  speciesIn = "common_name",
  sppLook = "Common_Name",
  traits = c("Family", "Species_Name", "Common_Name", "Origin"),
  filterNA = TRUE
)

Arguments

df

The data frame containing fish counts

speciesIn

The field in df that identifies species

sppLook

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

traits

Which trait fields should be included?

filterNA

Should species not in the traits table be dropped? (A warning listing the unmatched species is provided.)

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.