Function to write formatted table similar to table written by gdata::write.fwf from data.frame or matrix This function does not accept columns or logical with factor
write_fwf4(
x,
file = "",
append = FALSE,
quote = FALSE,
sep = " ",
na = "NA",
rownames = FALSE,
colnames = TRUE,
rowCol = NULL,
justify = "left",
width = NULL,
eol = "\n",
qmethod = c("escape", "double"),
digits = 6,
checkNA = TRUE,
checkInfty = TRUE,
checkError = TRUE
)
data.frame or matrix the object to be written
either a character string naming a file or a connection open for writing. "" indicates output to the console.
logical, append to existing data in file
logical, quote data in output
character, separator between columns in output
character, the string to use for missing values i.e. NA
in
the output
logical, print row names
logical, print column names
character, rownames column name
character, alignment of character columns; see
format()
numeric, width of the columns in the output
the character(s) to print at the end of each line (row). For example, 'eol="\r\n"' will produce Windows' line endings on a Unix-alike OS, and 'eol="\r"' will produce files as expected by Mac OS Excel 2004.
a character string specifying how to deal with embedded double quote characters when quoting strings. Must be one of '"escape"' (default), in which case the quote character is escaped in C style by a backslash, or '"double"', in which case it is doubled. You can specify just the initial letter.
Used for signif
logical if TRUE, function will stop when NA is found
logical if TRUE, function will stop when Infinity is found
logical if TRUE both, set checkNA and checkInftr TRUE