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