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