[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Getting list of current dataset's variables in order
After altering the variable order, such as with a -merge-, is there an easy
way to re-order the variables in their original order? I'm doing it now in
a round-about way (below). There must be a more direct way. I've looked
through Stata's extended functions and -creturn list-, and searched with the
keyword _all, but came up empty-handed. There's probably something that
I've stared directly at, but didn't see.
program define allem, rclass
return local all `varlist'
[commands that change variables' order]
* For searches and help try: