Thanks to Kit Baum, a new package called -valuesof-
is available from the SSC Archive.
To install the package, type
. ssc install valuesof
Note that the -moremata- package is required. To
install -moremata-, type
. ssc install moremata
-valuesof- copies the contents of a variable into
a macro.
-valuesof- may also be used to quickly display the
values of a variable in a very condensed format.
(Similar to -listjl-, STB-59, but unsorted and
unaligned)
-valuesof- returns *all* values of varname. If you are
interested in a list of the distinct values, i.e. the
"levels" of varname, see -help levelsof-.
-valuesof- may hit the limits of your Stata if used
with large amounts of data.
ben
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/