model_output | R Documentation |
Transform diet data (of class STOMdiet) into data used for the SMS model.
model_output(diet, length_classes_file, sp_info_file, intoSMSformat = FALSE)
diet |
Object of class STOMdiet.
The transformation uses values provided by the list "delete_small": logical, delete input with relative stomach contents weight lower than "min_value". If TRUE values smaller than "min_values" are deleted. 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. In addition a number for each predator and prey species is added (and later used for ordering of species). data for that is included in the CSV file sp_info_file. |
length_classes_file |
CSV file with definition of length classes. |
sp_info_file |
CSV file with the fields used arranging order of predator and prey.
The file must include two fields |
intoSMSformat |
Logical for transformation into SMS format. |
Data for use in the SMS model.
## Not run: x=2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.