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("word",all[,5])
returns nothing.
How come word boundaries are not recognized?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…