Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how does insheet determine datatypes? (response from Bill Gould)


From   Phil Schumm <[email protected]>
To   [email protected]
Subject   Re: st: how does insheet determine datatypes? (response from Bill Gould)
Date   Fri, 5 Jan 2007 14:13:43 -0600

Begin forwarded message:
From: [email protected] (William Gould, Stata)
Date: January 5, 2007 2:03:56 PM CST
To: [email protected]
Subject: Re: st: how does insheet determine datatypes?

Phil Schumm <[email protected]> asked,

Does anyone know how -insheet- determines datatypes -- specifically, how it distinguishes between numeric and string? If I read a large file and a column that is otherwise strictly numeric has a non-numeric value toward the end, can I rely on Stata to retain that observation and set the column to string (as opposed to setting the non-numeric value to missing)?
Phil can rely on Stata setting the column to a string. -insheet- reads the entire dataset twice, once to determine types and then again to record the values in variables of the appropriate (determined) types.

-- Bill
[email protected]

I don't believe Bill's response made it to the list, so I'm forwarding it for other's benefit. This was exactly what I wanted to hear -- thanks.


-- Phil

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index