Statalist The Stata Listserver


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

RE: st: RE: ONE STATA QUESTION ON READING DATA


From   "Ni Frank" <frankflying03@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: RE: ONE STATA QUESTION ON READING DATA
Date   Mon, 19 Mar 2007 03:47:11 -0400

hi,

When I use the command
infile col1-col5 using C:\statafile\grade2006.raw, clear

why it says " file C:\statafile\grade2006.raw not found" ?
( By the way, my data is in grade2006.txt file. )

So, what's wrong?

Thanks,
Frank



From: "Rodrigo Martell" <rodrigo.martell@frontier-economics.com.au>
Reply-To: statalist@hsphsun2.harvard.edu
To: <statalist@hsphsun2.harvard.edu>
Subject: st: RE: ONE STATA QUESTION ON READING DATA
Date: Mon, 19 Mar 2007 17:21:54 +1100

I think this will do the trick:

infile col1-col5 using "file path here", clear

Replace "col1" and "col3" with the names of your columns.

I hope this helps.

Rodrigo Martell

<http://www.frontier-economics.com>
Frontier Economics Pty. Ltd.
395 Collins Street
Melbourne VIC 3000
Australia
www.frontier-economics.com
switch:
direct:
fax:
mobile:
email:


+61 (0)3 9620 4488
+61 (0)3 9613 1518
+61 (0)3 8614 2711
+61 (0)407 909 811
rodrigo.martell@frontier-economics.com
<mailto:rodrigo.martell@frontier-economics.com>


This e-mail, including any attachments, may contain confidential and
privileged information for the sole use of the intended recipient(s). Any review, use, disclosure or distribution by others is strictly prohibited. If you are not the intended recipient (or authorised to receive information for the recipient), please contact the sender by reply e-mail and delete all copies of this message. Thank you.






-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Ni Frank
Sent: Monday, 19 March 2007 5:15 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: ONE STATA QUESTION ON READING DATA


Hi,

    Can anyone help me to solve this problem?

    I have a (large) dataset in ASCII file. It contains N colomn data
(numerical numbers). I only want to read part of them, for example, from
5th column to 10th column into STATA, how to do that?

    Thanks very much!

Frank

_________________________________________________________________
与联机的朋友进行交流,请使用  Live Messenger;
http://get.live.com/messenger/overview

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

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index