So there must be an error in the help file for the insheet command then -
when I type "help insheet "I get:
insheet [varlist] using filename [, options]
Which is incorrect, if I am reading these responses correctly.
Also - I am using the Stata for mac, sorry if I didn't specify that.
___________________________________________________________________________=
____
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
*
_________________________________________________________________
MSN is giving away a trip to Vegas to see Elton John.=A0 Enter to win today=
=2E
http://msnconcertcontest.com?icid-nceltontagline
*
* 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/