Statalist The Stata Listserver


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

RE: st: Insheet Dataset Problem


From   "GUO Lei" <[email protected]>
To   [email protected]
Subject   RE: st: Insheet Dataset Problem
Date   Mon, 09 Apr 2007 12:42:28 -0500

How about:
infix var1 x1-y1 var2 x2-y2 ..... using file
?

From: "Benjamin Allaire" <[email protected]>
Reply-To: [email protected]
To: [email protected]
CC: [email protected]
Subject: st: Insheet Dataset Problem
Date: Sun, 08 Apr 2007 22:05:31 -0500

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

_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/

*
* 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/
_________________________________________________________________
�������������ĵ����ʼ�ϵͳ�� MSN Hotmail�� http://www.hotmail.com
*
* 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