Kewal Shah
0
Q:

grepl filter r

df1 %>% filter(!grepl("^x|xx$", fruit))
###
    fruit group
1   apple     A
2  orange     B
3 banxana     A
4 appxxle     B
0
df1 %>% filter(!grepl("^x|xx$", fruit))
0

Tags

Related

New to Communities?

Join the community