filter_branch {mverse}R Documentation

Create a new filter branch.

Description

Create a new filter branch.

Usage

filter_branch(..., name = NULL)

Arguments

...

branch definition expressions.

name

Name for the new filter.

Value

a filter_branch object.

See Also

Other filter branch functions: add_filter_branch()

Examples

# Define a filter branch.
hurricane_outliers <- filter_branch(
  !Name %in% c("Katrina", "Audrey", "Andrew"),
  !Name %in% c("Katrina"),
  !Name %in% c("Katrina"),
  TRUE # include all
)
# Create a mverse and add the branch.
mv <- create_multiverse(hurricane) %>%
  add_filter_branch(hurricane_outliers)

[Package mverse version 0.1.0 Index]