Statalist The Stata Listserver


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

Re: st: Insheet Dataset Problem


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   Re: st: Insheet Dataset Problem
Date   Mon, 9 Apr 2007 07:40:27 -0700 (PDT)

Ben,

You cannot select variables with -insheet-.

. sysuse auto
. outsheet using auto.csv, comma
. clear
. insheet make price mpg using auto.csv
too few variables specified
error in line 76 of file
r(102);
. insheet using auto.csv
(12 vars, 74 obs)

Friedrich

--- Benjamin Allaire <[email protected]> wrote:
> Hi Statalisters -
> I had a quick question, I'm trying to import a dataset into
> intercooled
> stata and it contains too many variables, so I was trying to
> insheet the
> variables I need.  It's a csv file and I tried the following
> command:
> 
> insheet district month year using cfy06e3.csv, c names clear
> 
> And got the following error:
> 
> too few variables specified
> error in line 3934 of file
> r(102);
> 
> which is odd considering there are only 3932 observations and I
> don't
> particularly expect to get an error like this with the insheet
> command.
> Does anyone have any good ideas on a work around?
> 
> Thanks!
> 
> Ben


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
*
*   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