makeSeltxt
reshapes a dataframe with size-at-capture data into a selectivity text file suitable for SS3
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)
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.