min_samples {halk}R Documentation

Count number of length-at-age samples or age groups at each level and return those with greater than equal to the minimum desired number

Description

These are helper shortcut functions to determine if data meet the minimum desired number of age groups and/or sample sizes.

Usage

min_count_laa_data(
  data,
  sub_levels = NULL,
  min_age_sample_size = NULL,
  min_total_sample_size = NULL,
  min_age_groups = NULL
)

min_age_groups(data, sub_levels = NULL, min_age_grps)

Arguments

data

Data.frame with length-at-age data

sub_levels

The levels at which to check

min_age_sample_size

Only applicable to alk models. The minimum number of samples that must be in each age group in order to create an alk

min_total_sample_size

Only applicable to alk models. The minimum number of samples that must be in data in order to create an alk

min_age_groups

Only applicable to alk models. The minimum number of age groups that must be in data in order to create an alk

min_age_grps

The minimum number of age groups that must be present in data to create an ALK

Value

A data.frame just like data, but with samples excluded that don't meet the required number of samples in min_sample_size


[Package halk version 0.0.5 Index]