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