I have a data.frame named all
that has a column of factors, these factors include "word"
,"nonword"
and some others. My goal is to select only the rows that have the factor value "word".
My solution grep("\bword\b",all[,5])
returns nothing.
How come word boundaries are not recognized?
all %>% filter(column %in% "word")
? – Sleuth