[R] Write text file in Fortran format

Richard O'Keefe
Thu, 22 Sep 2022 00:31:16 -0000

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 at gmail.com>
wrote:

>

	[[alternative HTML version deleted]]