Create a lawful lens into the result of a filter. This focuses only columns not involved in the filter condition.

filter_l(...)

Arguments

...

unquoted NSE filter arguments

Examples

head(view(iris, filter_l(Species == "setosa"))) # Note Species is not seen
#> Sepal.Length Sepal.Width Petal.Length Petal.Width #> 1 5.1 3.5 1.4 0.2 #> 2 4.9 3.0 1.4 0.2 #> 3 4.7 3.2 1.3 0.2 #> 4 4.6 3.1 1.5 0.2 #> 5 5.0 3.6 1.4 0.2 #> 6 5.4 3.9 1.7 0.4
head(over(iris, filter_l(Species == "setosa"), function(x) x + 10))
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species #> 1 15.1 13.5 11.4 10.2 setosa #> 2 14.9 13.0 11.4 10.2 setosa #> 3 14.7 13.2 11.3 10.2 setosa #> 4 14.6 13.1 11.5 10.2 setosa #> 5 15.0 13.6 11.4 10.2 setosa #> 6 15.4 13.9 11.7 10.4 setosa