Я пытаюсь удалить из своего фрейма данных строки, содержащие менее 5 слов. например
mydf <- as.data.frame(read.xlsx("C:\\data.xlsx", 1, header=TRUE)
head(mydf)
NO ARTICLE
1 34 The New York Times reports a lot of words here.
2 12 Greenwire reports a lot of words.
3 31 Only three words.
4 2 The Financial Times reports a lot of words.
5 9 Greenwire short.
6 13 The New York Times reports a lot of words again.
Я хочу удалить строки с 5 или менее словами. Как я могу это сделать?