Function to convert data.table to fixed width:
fixedWidthTable(
x,
columnSeparator = " ",
lineSeparator = NULL,
na = "-",
enable.auto_unbox = TRUE,
add.line.index = FALSE,
line.index.start = 1
)
The table to modify.
The string to separate columns by, defaulted to a single space.
The string to separate lines by, defaulted to a NULL, which keeps the output as a vector of strings.
The string to replace NAs by, defaulted to "-".
Logical: If TRUE wrap the output in a list if pretty
is TRUE and the output is of length 1. This keeps the array when converting to JSON also for length 1.
Logical: If TRUE (the default) print row indices as in data.table.
The start of the line indices.