Skip to contents

Checks that the Ecopath Catch data frame has the required columns.

Usage

validEcopathCatch(ecopath_catch, species_params)

Arguments

ecopath_catch

A data frame with Ecopath catch for each group as exported by the Ecopath software.

species_params

The species parameters data frame

Value

The validated Ecopath catch data frame

Details

The function also deals with the fact that the column names in the Ecopath data frame can be different from the expected names if it was loaded in with read.csv instead of readr::read_csv.