Statalist


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

st: Importing selected variables from large dataset


From   [email protected]
To   [email protected]
Subject   st: Importing selected variables from large dataset
Date   Thu, 18 Oct 2007 10:03:47 -0500

I have a very large dataset (2.7Gb) in comma-delimted format (one observation
per line), but I only need a handful of the 16,000+ variables.  I know the
order of the variables but not their exact positions (beginning column or
length).  So, the file is too large to import in its entirety, and I don't have
the information to write a dictionary and use 'infile'.

Is there any way import only selected variables without writing a dictionary
file that has the exact starting and ending positions of the variables? 
Something akin to 'insheet' but where I can tell Stata that I want only the
1st, 5th, 7th, and 8th variables would be perfect.

Many thanks,
Scott

*
*   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