Hi
I have a large dataset in excel and when I am importing dataset into stata, most of the variables are becoming string variable. If I am using:
destring, replace force
all the string data is missing.
However, I am using the below command and still the problem is not solved.
help foreach
ds, has(type string)
foreach v in `r(varlist)' {
di "`v'{col 33}" _n
count if missing(real(`v')) & !missing(`v')
}
Could you guys please help how can I solve this problem?
I have a large dataset in excel and when I am importing dataset into stata, most of the variables are becoming string variable. If I am using:
destring, replace force
all the string data is missing.
However, I am using the below command and still the problem is not solved.
help foreach
ds, has(type string)
foreach v in `r(varlist)' {
di "`v'{col 33}" _n
count if missing(real(`v')) & !missing(`v')
}
Could you guys please help how can I solve this problem?
Comment