filterC {baizer} | R Documentation |
apply tbflt on dplyr filter
Description
apply tbflt on dplyr filter
Usage
filterC(.data, tbflt = NULL, .by = NULL, usecol = TRUE)
Arguments
.data |
tibble |
tbflt |
tbflt object |
.by |
group by, same as |
usecol |
if |
Value
tibble
Examples
c1 <- tbflt(cut == "Fair")
c2 <- tbflt(x > 8)
mini_diamond %>%
filterC(c1) %>%
head(5)
mini_diamond %>% filterC(c1 & c2)
x <- 8
cond <- tbflt(y > x)
# variable `x` not used because of column `x` in `mini_diamond`
filterC(mini_diamond, cond)
# will raise error because `x` is on the right side of `>`
# filterC(mini_diamond, cond, usecol=FALSE)
# if you know how to use `.env` or `!!`, forget argument `usecol`!
cond <- tbflt(y > !!x)
filterC(mini_diamond, cond)
cond <- tbflt(y > .env$x)
filterC(mini_diamond, cond)
[Package baizer version 0.8.0 Index]