Statalist The Stata Listserver


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

st: how does insheet determine datatypes?


From   Phil Schumm <[email protected]>
To   [email protected]
Subject   st: how does insheet determine datatypes?
Date   Fri, 5 Jan 2007 13:14:19 -0600

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)? Or, can I at least rely on Stata to throw a "cannot be read as number" error that I can catch?

I've looked through the manual, FAQs, and list archives, but I can't seem to find the answer (the closest I came was http://www.stata.com/ statalist/archive/2002-06/msg00012.html, but that doesn't answer my question).

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