Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: identify all variables with dates


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: identify all variables with dates
Date   Wed, 3 Mar 2010 09:14:08 +0100

<> 

"contain dates" is ambiguous. If it denotes variables that feature a %tc or
%td -format-, -ds- is your friend
(http://www.stata-journal.com/article.html?article=dm0040). 

I do suspect, however, that you want to obtain a list of varnames which are
_potential_ dates, but still stored as strings. You have to clarify this
issue for the list, and identify any property of those strings that enables
automatic identification ("they all have slashes in them")...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von raoul reulen
Gesendet: Mittwoch, 3. März 2010 01:50
An: statalist@hsphsun2.harvard.edu
Betreff: st: identify all variables with dates

Hello

Is there a way to identify all variables in a dataset that contain
dates and then store the relevant variable names in a local? I am
looking for something like the "ds" command.

Thanks

Raoul
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index