# A tibble: 4 x 1
`134518d.g6`
<chr>
1 134519dg6
2 134520d.g6
3 134521d.g6
4 134522dg6
This is part of my code. I want to remove all rows that contain .g and keep the rest rows (the first and fourth row in this code).
Tried to use this
df<-df1[! grepl(".g",df1$`134518d.g6`),]
but it didn't remove the unwanted rows.