Change or apply filters to output type
filter_to.RdUseful in concert with axis brushing
Usage
filter_to(filters, out_type = character(), .data)Arguments
- filters
listof named filters to use. Each filter is named by the column name with the range as a length two numeric vector- out_type
objof desired output type- .data
tbldata to use ifout_type = logical()/data.frame()
Examples
f <- list(wt = c(1,5))
d <- data.frame(wt = 1:10)
filter_to(f)
#> wt: 1 - 5
#> "wt"
filter_to(f, out_type = data.frame(), .data = d)
#> wt
#> 1 1
#> 2 2
#> 3 3
#> 4 4
#> 5 5