[Rd] Possible improvement of "read.fwf"

Harald Fekjaer hfe@math.uio.no
Mon, 19 Mar 2001 21:16:37 +0100 (MET)


Dear R developers

I have little improvement to "R base", that I hope you will include in the official version.

Using the new connection possibilities, and important option is to read a limited amount of data each time. In the "scan"-function, this can be done with the "n" and "nmax" options, but I have found no such possibilities in "read.fwf". This is a limitation in reading large fixed formatted data files, and at:
http://www.uio.no/~hfe/midl/R/readfwf-source.html

You will find my suggestion to improve the "read.fwf".
(New code is marked with red colour. Pure code is avilble at:
http://www.uio.no/~hfe/midl/R/readfwf.R)

And you will find the new documentation on:
http://www.uio.no/~hfe/midl/R/readfwf.html

Hope you will appreciate this small improvement.

Yours sincerely
Harald Fekjśr, <harald.fekjar@basalmed.uio.no>
---
University of Oslo, Norway & Norwegian cancer registry

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._