write.fwf: Export data in a fixed-width format

Description Usage Arguments Details See Also Examples

View source: R/write.fwf.R

Description

Export a data frame using a fixed-width format. Useful for software as Winsteps.

Usage

1
write.fwf(x, file="", na = ".", append = FALSE, fileEncoding = "")

Arguments

x

The object to be written, preferably a matrix or data frame.

file

A character string naming a file or a connection open for writing. "" indicates output to the console.

na

The string to use for missing values. The dot is the default.

append

If TRUE, the output is appended to the file.

fileEncoding

the encoding to be used on a file. See file.

Details

The row names are used as subject's identity code.

See Also

write.table

Examples

1
2
3
4
5
6
## Not run: 
data("drive")
str(drive)
write.fwf(drive[1:10,5:10])

## End(Not run)

DavideMassidda/raschTools documentation built on April 27, 2021, 4:24 a.m.