1
votes

I have a string variable in Stata called Cod. I want to drop the observations such that Cod has less than 16 characters. Any suggestion?

1

1 Answers

2
votes

You should look at help string functions to learn basic syntax here.

drop if length(Cod) < 16

may be what you seek.