add_filter_branch {mverse}R Documentation

Add filter branches to a mverse object.

Description

This method adds one or more filter branches to an existing mverse object. Filter branches are used to define options for conditions for selecting subsets of data rows.

Usage

add_filter_branch(.mverse, ...)

## S3 method for class 'mverse'
add_filter_branch(.mverse, ...)

Arguments

.mverse

a mverse object.

...

filter_branch objects.

Value

The resulting mverse object.

See Also

Other filter branch functions: 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]