how to use filter() in r code example Example: filter r df %>% filter(column1 == 'X', column2 > 667) # , = and # | = or