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
Neil Shephard <[email protected]>
To
[email protected]
Subject
Re: st: CSV read with limits
Date
Fri, 11 Mar 2011 17:08:09 +0000
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-
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?
Neil
--
“Truth in science can be defined as the working hypothesis best suited
to open the way to the next better one.” - Konrad Lorenz
Email - [email protected]
Website - http://kimura.no-ip.org/
Photos - http://www.flickr.com/photos/slackline/
*
* 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/