R: Find and remove all one to two letter words

后端 未结 2 1370
礼貌的吻别
礼貌的吻别 2021-01-13 05:27

I am attempting to clean away any one or two letter words from a text passage. This was my first thought

gsub(\" [a-zA-Z]{1,2} \", \" \", \"a ab abc B BB BBB         


        
2条回答
提交回复
热议问题