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: CSV read with limits
From
Argyn Kuketayev <[email protected]>
To
[email protected]
Subject
Re: st: CSV read with limits
Date
Fri, 11 Mar 2011 12:16:59 -0500
On Fri, Mar 11, 2011 at 12:08 PM, Neil Shephard <[email protected]> wrote:
> On Fri, Mar 11, 2011 at 4:59 PM, Argyn Kuketayev
> <[email protected]> wrote:
>> also,
>> insheet X Y Z using file.csv, names comma
>>
>> didnt work the way i wanted. it doesn't select variables from
>> available in file. it wants me to rename variable names. if i provide
>> only one variable Stata complains
>
> Try using -infile- to define a dictionary of the fields to read in,
> details in -man infile2-
this is too painful. this is such a basic feature, I can't believe
Stata doesn't have it. Simply select vertically and horizontally from
a text file.
>
> I don't know of anyway to select a subset of observations to read in.
>
> More generally what is wrong with reading in everything and then using
> -keep- or -drop- to remove extraneous variables/observations?
the file is 6GB, too large. There's >100 variables, and I need only 3 or 4.
cheers
--
Argyn Kuketayev
*
* 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/