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, 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" <>
To   <>
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

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")...


-----Ursprüngliche Nachricht-----
[] Im Auftrag von raoul reulen
Gesendet: Mittwoch, 3. März 2010 01:50
Betreff: st: identify all variables with dates


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.


*   For searches and help try:

*   For searches and help try:

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