add_Aphia_ID: Add WoRMS Aphia Id Add WoRMS Aphia Id to predator or prey...

View source: R/add_aphia.R

add_Aphia_IDR Documentation

Add WoRMS Aphia Id Add WoRMS Aphia Id to predator or prey species where missing.

Description

Add WoRMS Aphia Id Add WoRMS Aphia Id to predator or prey species where missing.

Usage

add_Aphia_ID(
  stom,
  Worms_Aphia_ID,
  predator_or_prey = c("predator", "prey"),
  stop_if_errror = FALSE,
  delete_first = FALSE,
  verbose = FALSE,
  match_item = c("item", "scientific")[2]
)

Arguments

stom

Stomach data set of class STOMobs, from e.g. read_exchange_data).

Worms_Aphia_ID

File Name including WoRMS Aphia ID by Latin (or other) predator or prey name.file 'WoRM_AphiaID.csv' in the package /inst directory is used as default.

predator_or_prey

Add missing Aphia ID for predator | prey.

stop_if_errror

Logical for stopping if AphiaID is not found for all.

delete_first

Delete all existing WoRMS Aphia Id before adding new

verbose

Show information on progress

match_item

Variable name in WoRM_AphiaID.csv ("item" or "scientific') used to assign WoRMS Aphia ID.

Value

Stomach data on internal format.

Examples

## Not run: add_Aphia_ID(X)

MortenVinther/FishStomachs documentation built on Feb. 14, 2025, 7:33 a.m.