trophic: Calculate mean trophic level

Description Usage Arguments Value

Description

Calulates mean trophic level, by year, site, and transect, for a given location.

Usage

1
trophic(data, location)

Arguments

data

A dataframe that contains at least columns of Ano, Zona (e.g. "Zona de pesca" or "Zona de no pesca"), Sitio, Transecto, GeneroEspecie, and Abundancia. A column for trophic level is optional, though heavily suggested to avoid errors in calculations (this package might not have trophic level information for all species).

location

A quoted string that indicates the location.

tl

An optional dataframe with a column for each species (called GenusSpecies) and a column for the trophic level of each species (called TL).

Value

size A dataframe with columns for Ano, Zona, Sitio, Transecto, GeneroEspecie, and mean trophic level (TL).


turf-reserves/mpa.tools documentation built on June 1, 2019, 2:55 a.m.