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: import excel and value labels


From   A Loumiotis <antonis.loumiotis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: import excel and value labels
Date   Wed, 11 Dec 2013 10:39:29 +0200

I noticed that whenever I load an excel file in Stata using -import
excel- the existing values labels are deleted.  Is this the normal
behavior of -import excel-?

Here is an example:

. label define test 1 "yes" 2 "no"

. label l test
test:
           1 yes
           2 no

. import excel book1.xlsx, clear first

. label l test
value label test not found
r(111);
*
*   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