Reputation: 64054
I have a vector of strings that looks like this
x <- c("WDNTO","WDRN","WDSAX","WECAX","WEN","WEDTO")
What I want to do is to extract only strings not longer than 4 characters, resulting in
WDNT,WDRN,WDSA,WECA,WEN,WEDT
What's the way to do it?
Upvotes: 1
Views: 191