print.default {base} | R Documentation |
Default Printing
Description
print.default
is the default method of the generic
print
function which prints its argument.
print.atomic
is almost the same and exists purely for
compatibility reasons.
Usage
print.default(x, digits = NULL, quote = TRUE, na.print = NULL,
print.gap = NULL, right = FALSE, ...)
print.atomic(x, quote = TRUE, ...)
Arguments
x |
the object to be printed. |
digits |
a non-null value for |
quote |
logical, indicating whether or not strings
( |
na.print |
a character string which is used to indicate
|
print.gap |
an integer, giving the spacing between adjacent columns
in printed matrices and arrays, or |
right |
logical, indicating whether or not strings should be right-aligned. The default is left-alignment. |
... |
(further arguments, currently disregarded) |
Details
The default for printing NA
s is to print NA
(without
quotes) unless this is a character NA
and quote =
FALSE
, when <NA>
is printed.
The same number of decimal places is used throughout a vector, This
means that digits
specifies the minimum number of significant
digits to be used, and that at least one entry will be printed with
that minimum number.
See Also
The generic print
, options
.
The "noquote"
class and print method.
Examples
pi
print(pi, digits = 16)
LETTERS[1:16]
print(LETTERS, quote = FALSE)