Bookmark and Share

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   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   Re: st: CSV read with limits
Date   Fri, 11 Mar 2011 11:46:46 -0500

I believe:

insheet X Y Z using file.csv, names comma

where X Y Z are the variables you want. I don't know of a way to limit
observations.

Also, csv files have a limit of 70K rows, so watch out.

DVM

On Fri, Mar 11, 2011 at 10:58 AM, Argyn Kuketayev
<[email protected]> wrote:
> Hello
>
> I have CSV file (comma separated). I need Stata to read the 1st line
> with variable names, then import only selected variables. Also I want
> to limit the number of observations to read.
>
> I cant figure out how to do it in Stata. In SAS it would be easy with
> DATA, var list and OBS option.
>
> thanks
>
> --
> 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/
>

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index