I have the following dataset
data = {{"one", "two", "three", "a", "b", "c"}, {"four", "five", "d"}}
I want to delete all the strings with length < 2. The desired output is:
{{"one", "two", "three"}, {"four", "five"}}
I found several solutions on this site like:
DeleteCases[#, x_ /; Length[x] < 2] & /@ data
But none of them resulted in my desired output. Any suggestion?
Cases[#, x_ /; StringLength[x] >= 2] & /@ data
$\endgroup$