Hi All,
I am trying to build a Stata package which can convert a numeric variable to a string variable. I tried using the code below and got the error message of: " invalid name r(198);
Appreciate your help!
---
syntax varname
confirm str variable `varname'
if !_rc {
tostring "`varname'", replace
}
I am trying to build a Stata package which can convert a numeric variable to a string variable. I tried using the code below and got the error message of: " invalid name r(198);
Appreciate your help!
---
syntax varname
confirm str variable `varname'
if !_rc {
tostring "`varname'", replace
}
Comment