R/reduce_samples.R
reduce_samples.Rd
reduce total number of lengths or ages
reduce_samples( data, samples, grp = c("year", "species_code", "stratum", "hauljoin"), type = NULL )
lfreq or afreq dataframe
number of lengths to take
grouping variable(s)
either age or length reduction (default = NULL)