tidy_sample_avail: Tidy PBS samples data for 'plot_sample_avail()'

View source: R/samples.R

tidy_sample_availR Documentation

Tidy PBS samples data for plot_sample_avail()

Description

Tidy PBS samples data for plot_sample_avail()

Usage

tidy_sample_avail(dat, year_range = NULL, ageing_method_codes = NULL)

Arguments

dat

Input data frame from gfdata::get_survey_samples().

year_range

Either NULL, in which case all years are returned, or a numeric vector of length two giving the lower and upper years to include.

ageing_method_codes

A numeric vector of ageing method codes to filter on. Default to NULL, which brings in all valid ageing codes. See gfdata::get_age_methods().

Examples

## Not run: 
d <- gfdata::get_survey_samples("lingcod")
tidy_sample_avail(d)

d <- gfdata::get_commercial_samples("lingcod")
tidy_sample_avail(d)

## End(Not run)

pbs-assess/gfplot documentation built on March 14, 2024, 3:20 p.m.