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]

Re: st: Importing CVS files after "clear" command?


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Importing CVS files after "clear" command?
Date   Mon, 7 Mar 2011 09:29:19 +0000

A second guess is that your previous -clear- is nothing to do with
this, but that you are expecting more than Stata will do to make sense
of your .csv, which may well contain more header material which in
Stata's term is not data. See

FAQ     . . . . . . . . . . . . . . . . . .  Numeric variables input as string
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        2/02    Stata is reading in my variables as string, whereas
                they should be numeric. What should I do?
                http://www.stata.com/support/faqs/data/allstring.html


On Mon, Mar 7, 2011 at 12:39 AM, Nick Cox <[email protected]> wrote:
> There is a lot of advice in the FAQ on how to ask questions.
>
> Also check out
>
> http://blog.stata.com/2010/12/14/how-to-successfully-ask-a-question-on-statalist/
>
> Sounds as if you need to show us some of the .csv file that you think
> didn't read in properly. Not the whole thing, which of course might be
> enormous, but just the first few lines. Don't send it as an
> attachment: copy and paste into your message.
>
> Nick
>
> On Mon, Mar 7, 2011 at 12:25 AM, Sergio Villamayor Tomas
> <[email protected]> wrote:
>> Hi Nick,
>> Thanks for your reply.
>>
>> This is what I did:
>> I imported a CSV file into STATA. Then I typed "clear" in the command box (I
>> just wanted to try it out). Then STATA cleared all the variables of my
>> imported CSV file. Then, I closed STATA. Then I created a new copy of my CSV
>> file (from an original excel file). Then  tried to import again the CSV file
>> and, although STATA imported it, it only read the labels of the file. It
>> looks like it did not recognized the numbers of the file.
>>
>> I read all the threads in statalist after searching by "clear" and, maybe it
>> was not that helpful because my STATA knowledge is pretty limited yet.
>>
>>
>

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index