cat {base} | R Documentation |
Concatenate and Print
Usage
cat(... , file = "", sep = " ", fill = FALSE, labels = NULL,
append = FALSE)
Arguments
... |
R objects which are coerced to character strings, concatenated, and printed, with the remaining arguments controlling the output. |
file |
character string naming the file to print to. If
|
sep |
character string to insert between the objects to print. |
fill |
a logical or numeric controlling how the output is
broken into successive lines. If |
labels |
character vector of labels for the lines printed.
Ignored if |
append |
if |
Value
cat
converts its arguments to character strings, concatenates
them, separating them by the given sep=
string, and then
prints them.
cat
is useful for producing output in user defined functions.
Examples
## print an informative message
cat("iteration = ", iter <- iter + 1, "\n")