filter_by_group | R Documentation |
This function can be used to filter any tibble (e.g. network model object) that has a "group" column. See the Examples for more details and syntax.
filter_by_group(.data, ...)
.data |
A tibble that has a 'group' column, such as a 'networkModel' object. |
... |
Conditional expressions for filtering (see the Examples). |
A tibble similar to the input object, but with rows filtered based
on ...
.
trini_mod
trini_mod$group
groups(trini_mod)
filter_by_group(trini_mod, stream == "LL", transect == "transect.1")
filter_by_group(trini_mod, transect == "transect.1")
## Not run:
# The code below would raise an error because there is no "color" grouping variable.
filter_by_group(trini_mod, color == "red")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.