subset.STOMdiet | R Documentation |
General method for sub-setting a STOMdiet object.
## S3 method for class 'STOMdiet'
subset(x, ..., na_rm = TRUE)
x |
Take subset of this dataset. |
... |
One or more subset criteria. |
na_rm |
Delete missing values. |
A STOMdiet object contains two kinds of information:
Between predator information (contained in component PRED)
Within prey information (contained in component PREY)
This method can subset over both kinds of information - at once.
The functionality is achieved by matching each of the subset critera
to the appropriate data component. When a match is found the subset is
performed on the component and the subsetting is continued to the next
subset criteria. The number of subset critera can be arbitrary and is
given through the ...
argument.
Code is copied from the DATRAS package
The reduced dataset of class STOMdiet.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.