View source: R/pool_sample_id_size.R
pool_data | R Documentation |
Individual stomach's data are pooled and predator information are updated for samples with the same sample_id
and predator size class.
pool_data(stom)
stom |
stomach contents data of class STOMobs. |
The stomach contents weight by prey and prey_size class are summed for for all samples within a sample_id and predator size class.
Number of stomachs are similarly added to include all stomachs.
In the pooled data, the variable fish_id
becomes the value of a previously assigned predator size.
Size classes of both predators and preys must have been assigned ( put_size_class_on_predator and put_size_class_on_prey ) before aggregation can be made.
Technically, the fish_id
is updated with the predator size pred_size
stomach contents data of class STOMobs with pooled stomach contents and number of stomachs, and updated predator information.
## Not run: aggregate_within_sample(ns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.