| combine_filters | R Documentation |
Combines multiple filter conditions using AND or OR logic.
combine_filters(..., op = "and", apply_when = NULL, debug = FALSE)
... |
Two or more filter data frames to combine |
op |
Operation: "and" or "or" |
apply_when |
Optional condition vector for conditional filtering |
debug |
Print debug information (default: FALSE) |
Combined binary selection matrix
data("sample_prices_weekly")
momentum <- calc_momentum(sample_prices_weekly, 12)
rsi <- calc_rsi(sample_prices_weekly, 14)
# Create individual filters
high_momentum <- filter_above(momentum, 0.05)
moderate_rsi <- filter_between(rsi, 40, 60)
# Combine them
combined <- combine_filters(high_momentum, moderate_rsi, op = "and")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.