[R] Reading fixed column format

Jason Barnhart jasoncbarnhart at msn.com
Mon Sep 11 20:38:41 CEST 2006

These posts may be helpful.

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 

----- Original Message ----- 
From: "Anupam Tyagi" <AnupTyagi at yahoo.com>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, September 11, 2006 9:55 AM
Subject: Re: [R] Reading fixed column format

> Jason Barnhart <jasoncbarnhart <at> msn.com> writes:
>> Not familiar w/ Stata, but these functions read data files and should
>> provide the functionality you wish.
>> ?read.fwf
>> ?read.table
>> ?scan
> None of these seem to read non-coniguous variables from columns; or may be 
> I am
> missing something. "read.fwf" is not meant for large files according to a 
> post
> in the archives. Thanks for the pointers. I have read the R data input and
> output. Anupam.
> ______________________________________________
> R-help at 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.

More information about the R-help mailing list