makeSeltxt: makeSeltxt

Description Usage Arguments

View source: R/makeSeltxt.R

Description

makeSeltxt reshapes a dataframe with size-at-capture data into a selectivity text file suitable for SS3

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
makeSeltxt(
  size_csv,
  size_col = "Measured.Length..cm.",
  fishery_col = "Fishery",
  time_col = "Year",
  sex = F,
  sex_col = "Sex",
  sex_vals = c("F", "M"),
  lBins = seq(50, 250, 5)
)

Arguments

size_csv

csv with capture information; each row should be a fish, sex optional

size_col

character name of column with measurement information; will drop NA rows

fishery_col

character name of column with fishery names; used to form cuts

time_col

character name of column by which time should be grouped; currently only supports one value (e.g. 'year')

sex

logical. should we aggregate by sex? if so, the resultant text file will print females and males in that order

sex_col

character name of column with sexes

sex_vals

vector of sex designations, female then male

lBins

vector of bin breaks


mkapur/kaputils documentation built on Nov. 14, 2021, 3:23 a.m.