I am wondering if there is a way to ask Stata to produce a list of a variables unique values. For example, if I have a variable year that has ranges from 1750 to 2000, is there a way to ask Stata to produce a simple list of the variable's unique values in the output window? So, it would look like "1750 1765 1766 1770 , , , 1996 1997 1998 1999 2000." I want to copy paste this list into another document, so I do not want to generate the unique values using tab or list. Any ideas?
Related Posts with Produce a list of unique values (not using tab or list)
Days between two dates, separated by year.Hello statalist! I have a dataset in long format which measure enrollment under a period of time. E…
WDI dataDear Statalist, I would like to download WDI data that could also include the income_group and regi…
test pointwise distance with measurement errorHi everyone, I have geographical coordinates for several households in two different points in time …
New version of descsave on SSCThanks once again to Kit Baum, a new version of the descsave package is now available for download f…
New version of vallabsave on SSCThanks as always to Kit Baum, a new version of the vallabsave package is now available for download …
Subscribe to:
Post Comments (Atom)
0 Response to Produce a list of unique values (not using tab or list)
Post a Comment