How do I drop observations within a variable if they are not numeric?
-
Login or Register
- Log in with
clear input str39 v1 "EstadísticadelPadrónContinuo" "43.- Tarragona" "Población por sexo, Sección y relación lugar de nacimiento y residencia." "Unidades: Personas" "4300101001" "4300201001" "4300301001" "4300401001" "4300401002" "4300401003" "4300401004" "4300402001" "4300402002" end cap drop if regexm(v1, "[A-z]") list *or* cap keep if regexm(v1, "^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]") list
Comment