Is it possible to group all String variables in the dataset together. I created this code, but it doesn't do what I want.
foreach v of varlist _all{
capture confirm string `v'
if _rc{
order `v', first
}
}
I want all the string variables to be put to the front of the dataset.
foreach v of varlist _all{
capture confirm string `v'
if _rc{
order `v', first
}
}
I want all the string variables to be put to the front of the dataset.
Comment