print.default
Print Data

Description

Prints the input.

Usage

print.default(x, digits = NULL, quote = TRUE, na.print = NULL, 
    print.gap = NULL, right = FALSE, max = NULL, useSource = TRUE, ...)

Arguments

x any object. Missing values (NAs) are allowed.
digits the number of significant digits that should be printed in numeric or complex data. Because all numbers in any vector are printed in the same format, this can mean that some numbers are printed with more than digits significant digits. Use digits=17 to print all significant digits of a double precision number. If the argument is omitted, the digits option is used. See options.
quote a logical value. If set to TRUE (the default), character strings are printed with surrounding quotes.
na.print a character string used to print NA values, or NULL. If NULL, the default string 'NA' is used.
print.gap the number of spaces to put between values, or NULL. If NULL, a single space is used.
right a logical value. Controls alignment of character strings. If set to FALSE (the default), the output is aligned left.
max sets the number of elements to print. If NULL, uses the max.print option.
useSource a logical value. if TRUE (the default), functions are printed using the source (if available). If FALSE, functions are deparsed and printed.
... other arguments are accepted but are currently ignored.
Value
x, with the invisible flag set to prevent reprinting.
Side Effects
object x is printed in an appropriate format.
See Also
print, print.data.frame, cat, format, invisible, options.
Examples
# In a loop, explicit printing is necessary:
for(i in 1:10) print(i)
# Compare this with:
for(i in 1:10) i

round(x, 3) # auto print of x rounded to 3 decimal places print(x, 3) # x to 3-significant digits

Package base version 6.0.0-69
Package Index