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