A concise infix operator for filtering atlas regions by metadata attributes.
Equivalent to calling filter_atlas but allows a more fluent
pipe-friendly syntax.
Arguments
- atlas
An atlas object.
- expr
An unquoted filter expression using column names from
roi_metadata. Multiple conditions can be combined with&and|.
See also
filter_atlas for the underlying function,
roi_metadata for available filter columns
Examples
if (FALSE) { # \dontrun{
atlas <- get_schaefer_atlas(parcels = "200", networks = "7")
# Filter to left-hemisphere Default network
sub <- atlas %where% (network == "Default" & hemi == "left")
# Filter by label pattern
vis <- atlas %where% grepl("Vis", label)
} # }