Re: [Rd] read.table, read.fwf, and na.strings (PR#7083)

From: <rmh_at_temple.edu>
Date: Tue 13 Jul 2004 - 14:07:52 EST


I am pleased to report that R already has the answer to my request in the

   strip.white=TRUE,
argument. With this argument
tmp3 <- read.fwf("temp.dat",

                 na.strings="-999",
                 strip.white=TRUE,
                 col.names=LETTERS[1:4],
                 widths=c(2,4,5,5))

tmp3
behaves exactly like I want it to behave.

Please add it explicitly to the documentation for read.fwf and all will be well. Currently it is there only by indirect reference to read.table.

Rich



R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Tue Jul 13 14:13:53 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:02 EST