I have a dataframe such as this one:
d <- data.frame(cbind(x=1, y=1:10, z=c(\"apple\",\"pear\",\"banana\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\"
You want to use grepl in this case, e.g., new_d <- d[! grepl("K",d$z),].
grepl
new_d <- d[! grepl("K",d$z),]