- v
the item to be summarized. If this is a list of a vector of named
items, then information is provided for each element. Otherwise, information
is provided for the first and last n
values.
- msg
optional character value indicating a message to show,
introducing the vector. If not provided, then
a message is created from v
. If msg
is a non-empty string,
then that string is pasted together with a colon (unless msg
already
contains a colon), before pasting a summary of data values.
- postscript
optional character value indicating an optional message
to append at the end of the return value.
- digits
for numerical values of v
, this is the number of digits
to use, in formatting the numbers with format()
; otherwise,
digits
is ignored.
- n
number of elements to show at start and end. If n
is negative, then all the elements are shown.
- showNA
logical value indicating whether to show the number
of NA
values. This is done only if the output contains ellipses,
meaning that some values are skipped, because if all values are shown,
it will be perfectly obvious whether there are any NA
values.
- showNewline
logical value indicating whether to put a newline
character at the end of the output string. The default, TRUE, is
convenient for printing, but using FALSE makes more sense if
the result is to be used with, e.g. mtext()
.