[R] Reading complicated data file

Jens Nieschulze jniesch at gwdg.de
Wed Sep 25 14:35:26 CEST 2002


On Wed, 25 Sep 2002 zlamal at ufi.fme.vutbr.cz wrote:

%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.

what about using read.table(....,skip=3) and later subsetting your
dataframe to the two desired columns?

%
%Thank for advice
%Jakub Zlamal
%-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
%

***********************************************************************
Jens Nieschulze

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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