Re: [R] Reading fixed column format

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Tue 12 Sep 2006 - 12:03:49 GMT


Hi

Well. I use R quite extensively for a quite a long time without knowing "perl, cut, awk etc". Do you think I shall learn it?

I agree with Barry Rowlingson that best way how to get a correct answer is to present all relevant information. Seems to me that read.table, read.fwf are obvious choce, but there are other read options as you can find out from help index, e.g. readLines, readBin.

Maybe you could try to fine tune readLines.

HTH
Petr

On 12 Sep 2006 at 6:47, Anupam Tyagi wrote:

To:             	r-help@stat.math.ethz.ch
From:           	Anupam Tyagi <AnupTyagi@yahoo.com>
Date sent:      	Tue, 12 Sep 2006 06:47:56 +0000 (UTC)
Subject:        	Re: [R] Reading fixed column format

> Jason Barnhart <jasoncbarnhart <at> msn.com> writes:
>
> >
> > These posts may be helpful.
> > http://tolstoy.newcastle.edu.au/R/help/05/06/5776.html
> > https://stat.ethz.ch/pipermail/r-help/2002-May/021145.html
> >
> > Using scan directly may also work for you rather than read.fwf.
> >
> > Also, there are posts regarding using other tools such a 'perl' or
> > 'cut' to prepocess the data before reading with R. Searching the
> > archives with those keywords should help.
>
> I new user should not have to learn "perl","cut", "awk", etc simply to
> be able to use R. Does not make sense to me.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.

Petr Pikal
petr.pikal@precheza.cz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Sep 12 22:07:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 12 Sep 2006 - 12:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.