I have a dataframe m and I want to remove all the rows where the f_name column has an entry greater than 3. I assume I can use something similar to

m <- m[-grep("nchar(m$f_name)>3", m$f_name]
Edit
Report