.default.formatter: Default formatter, coorisponding to the as.output functions
Description
This function provides the default formatter for the
iotools package; it assumes that the key is
seperated from the rest of the row by a tab character,
and the elements of the row are seperated by the pipe
("|") character. Vector and matrix objects returned from
the output via as.output.
Usage
.default.formatter(x)
Value
Either a character matrix with a row for each element in the input, or
a character vector with an element for each element in the input. The
latter occurs when only one column (not counting the key) is detected
in the input. The keys are stored as rownames or names, respectively.
Arguments
x
character vector (each element is treated as a row) or a raw
vector (LF characters '\n' separate rows) to split