[R] output into an unformatted direct fortran file

Richard.Cotton at hsl.gov.uk Richard.Cotton at hsl.gov.uk
Mon Jan 7 14:39:41 CET 2008


> Is there a way to output data into a file like the unformatted, direct
> fortran files? That's the kind that can be opened with:

It sounds like you want to use cat(), e.g.
cat("x = ", 1:10, file="test.txt")

See also write for outputting matices to file; and write.table and 
write.csv for data frames.

Regards,
Richie.

Mathematical Sciences Unit
HSL


------------------------------------------------------------------------
ATTENTION:

This message contains privileged and confidential inform...{{dropped:20}}




More information about the R-help mailing list