get_diet: Get diet composition data for plotting

Description Usage Arguments Value Examples

View source: R/get_diet.R

Description

Creates a dataset for plotting annual or seasonal weighted diet composition with sample sizes. Datasets are for a selected species and set of seasonal survey strata. Currently only works for summer flounder with strata pre-selected. Need to clearly define what each data column is, render to tidy data. This is a first draft that will be revised with dplyr functions later. n.b., Original file from Brian Smith, August 23 2018 was allwt_nstoms.R, renamed as get_diet.R

Usage

1
get_diet(species_code)

Arguments

species_code

numeric. Three digit svspp code

Value

dataframe with variables svspp, year, season, meansw, num_tows, variance, cv, prey, totwt, relmsw, ci, relci, nstom

Examples

1
head(get_diet(103))

NOAA-EDAB/ECSA documentation built on Oct. 24, 2020, 2:21 p.m.