| STOMcontrol-class | R Documentation |
An s4 class for Control object for stomach compilation.
object of class STOMcontrol
namecharacter. Name of control object.
stomach_formatexpression (R code) for file name for CSV file defining stomach contents data.
Default: expression(system.file("stomach_format.csv", package = "FishStomachs"))
For more details on exchange format see the vignette: vignette("Database_format", package = "FishStomachs")
stomach_dircharacters. Directory name with stomach data on exchange format.
dataSetsFile name or file names for data on exchange format.
yearsYear or years of data to be used.
quartersQuarters of the year ( or similar time split) to be used.
predatorsPredator name or names.
strata_area_expexpression for defining strata area.
strata_sub_area_expexpression for defining sub_area.
strata_time_expexpression for defining temporal strata.
strata_year_backexpression for getting year information out of diet data, e.g. expression(as.numeric(substr(stratum_time,1,4))).
strata_quarter_backexpression for getting quarter information out of diet data.
sel_preysSelected prey names for diet calculation.
min_prey_lengthMinimum prey length (or included in other food) integer.
calc_strataSpecification of strata
weighting_factorWeighting factor for weighted mean
year_quarter_stratavector.
weighting_by_nstomlogical.
combine_starta_from_relative_stomach_contentlogical.
model_optionslist. Options for producing input values to multi species models as SMS.
The list must as a minimum include the names :
"delete_small" logical, delete input with relative stomach contents weight lower than "min_value".
if FALSE values lower than "min_value" are increased to "min_value".
"min_value", minimum relative stomach contents weight (see above)
"insert_mid_value" logical, insert dummy value ("mid_value") where observations for a prey within a size range are missing
"mid_value" value used for missing mid-values.
"insert_tails", logical for insertion of dummy values("tail_value") for the prey size class which are lower and higher than the observed size range for a prey
"tail_value", value used for missing tail-values.
max_linteger. Number used for the maximum length, e.g. 9998L
mis_linteger. Number used for missing length, e.g. 9999L
mis_digestinteger. Number used for missing digestion stage e.g. 9L
othercharacter. Name for the "Other food", which is prey items not considered as individual prey species for further analysis, e.g. "other".
mis_size_classinteger. Number for size class where the size is unknown, e.g. 0L
ALK_optionslist, options used for creating Age Length Keys
do_test_outputlogical.
do_test_output_filelogical.
tst_filecharacter.
detailed_tst_outputlogical.
detailed_tst_filecharacter.
detailed_tst_criterialist.
boots_idlist of expression for defining sampling unit (haul) from STOMobs variables.
boots_stratalist expression for defining strata (haul).
## Not run: control<-new("STOMcontrol",
name='Baltic cod',
stomach_dir=file.path(stom_data_dir,'baltic'),
dataSets= c("balt_stom_new_formatNO_new_var.csv"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.