subset.STOMobs | R Documentation |
General method for sub-setting a STOMobs object.
## S3 method for class 'STOMobs'
subset(x, ..., na_rm = TRUE)
x |
Take subset of this dataset. |
... |
One or more subset criteria. |
na_rm |
Discard missing values in subset criterion? |
A STOMobs 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 criteria
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 criteria can be arbitrary and is
given through the ...
argument.
Code is copied from the DATRAS package
subset of dataset of class STOMobs.
## Not run: subset(ns,pred_name=='Cod')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.