Filter rows on one or more conditions
Filters a dataset to choose rows where conditions are true.
filter.(.df, ..., .by = NULL)
.df |
A data.frame or data.table |
... |
Conditions to filter by |
.by |
Columns to group by if filtering with a summary function |
test_df <- tidytable( a = 1:3, b = 4:6, c = c("a","a","b") ) test_df %>% filter.(a >= 2, b >= 4) test_df %>% filter.(b <= mean(b), .by = c)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.