[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Generating a Varlist that EXCLUDES a suffix
ds *3, not
If no variables match the pattern, this will return an
error; otherwise -not- specifies return of the complement
-ds- is currently undocumented (meaning, there is no
manual entry), but the help and the .ado are there
for you to use.
If -ds- didn't exist, this would be a three-step
unab not : *3
unab all : _all
local all : list all - not
and in general that should be more efficient, not
that you would normally notice. See
help for -macrolists- and -unab-.
> Can Stata generate a varlist that excludes all variables ending in,
> say, the number three? I need a varlist like this for a reshape.
* For searches and help try: