[R] Write text file in Fortran format

Richard O'Keefe r@oknz @end|ng |rom gm@||@com
Thu Sep 22 02:31:16 CEST 2022

Background: there is a data file whose records, after a header,
can be describedby the Fortran format given in the header.

YES, you can easily read that file in R, and you don't even need to know
anything about Fortran formats to do it.

You can read the file as a data frame using read.table
using the skip=8 parameter to skip the header and the
colnames=c("x", "y", ...) parameter to supply the column
names.  You will need to supply the column names yourself
because one of the column names given has a space in it.

On Wed, 21 Sept 2022 at 20:29, javad bayat <j.bayat194 using gmail.com> wrote:


	[[alternative HTML version deleted]]

More information about the R-help mailing list