[R] Reading complicated data file

Carlos Ortega carlos.ortega at minorplanet.com
Wed Sep 25 15:26:43 CEST 2002


Hello,

If the lines starting with "1" are from the 3rd onwards, you can use
read.table(...,skip=3).
If not, you can pre-process the file with awk, sed, etc. which are also
available for Windows.

Regards,
Carlos.


-----Mensaje original-----
De: owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]En nombre de
zlamal at ufi.fme.vutbr.cz
Enviado el: miercoles, 25 de septiembre de 2002 13:16
Para: r-help at stat.math.ethz.ch
Asunto: [R] Reading complicated data file


Hi, I am new in R and I have problem with reading this data file

0 TITLE Title
 0 XLEGEND Legend
-1 LABEL x
1 1 12
1 2 30
1 3 34

I want to read only lines starting with 1 (it indicates 1st plotting line)
and create data set from second and third value on this row.

Thank for advice
Jakub Zlamal
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._


_____
The information in this email is confidential and it may not be
disclosed or used by anyone other than the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action taken or
omitted is prohibited and may be unlawful.
Minorplanet cannot accept responsibility for the accuracy or completeness of
this email as it has been transmitted over a public network. If you suspect
that the email may have been amended, please call the sender.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list