[R] make.fields()

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Nov 11 08:48:17 CET 1999


On Thu, 11 Nov 1999, L. & R. wrote:

> Hi, where can I find the source of make.fields() cited in: 
B.Vanables & D.Smith, "Notes on R: A Programming Environment for Data Analysis and Graphics", p. 26:
> "...
> There is, however, a function make.fields() that can be used to convert a file with fixed width, non separated input fields into a file with separated fiels ..."
> (R Version 0.65.1 Release (October 07, 1999), Windows98)

In S-PLUS, unfortunately, and it is an internal function. (That source is
lightly edited from an S-PLUS document, and not by the authors you cite.)  
In R you can make use of read.fwf, provided you have perl installed on your
machine, and provided (<= 0.65.1) that R and the file are installed in
paths without spaces (and you can use the shortnames of such paths to avoid
this).


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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



More information about the R-help mailing list