Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: Return data characteristics after describe with replace option


From   Joe Canner <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: Return data characteristics after describe with replace option
Date   Fri, 8 Nov 2013 17:47:46 +0000

Jeremy,

To see them all:

.char list

To assign a characteristic to a macro:

. local macroname: char _dta[d_filename]

Regards,
Joe Canner
Johns Hopkins University School of Medicine


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jeremy Page
Sent: Friday, November 08, 2013 12:35 PM
To: [email protected]
Subject: st: Return data characteristics after describe with replace option

I am using the command -describe- with the replace option to generate a new dataset. The help file indicates that thing such as the filename, date, N and sort order are retained as characteristics. Are these characteristics stored? If so, how do I return them? I have pasted the information from the help file below.

Best,
Jeremy

    In addition, the data contain the following characteristics:

            _dta[d_filename], the name of the file containing the original data.

            _dta[d_filedate], the date and time the file was written.

            _dta[d_N], the number of observations in the original data.

            _dta[d_sortedby], the variables on which the original data were sorted, if any.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index