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. ----- Original Message ----- From: "Anupam Tyagi" <[EMAIL PROTECTED]> To: <r-help@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@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. > ______________________________________________ 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.