cat2 {toscutil} | R Documentation |
Concatenate and Print
Description
Same as cat
but with an additional argument end
,
which gets printed after all other elements. Inspired by pythons print
command.
Usage
cat2(
...,
sep = " ",
end = "\n",
file = "",
append = FALSE,
fill = FALSE,
labels = NULL
)
Arguments
... |
objects passed on to cat |
sep |
a character vector of strings to append after each element |
end |
a string to print after all other elements |
file |
passed on to |
append |
passed on to |
fill |
passed on to |
labels |
passed on to |
Value
No return value, called for side effects
Examples
x <- 1
cat("x:", x, "\n") # prints 'Number: 1 \n' (with a space between 1 and \n)
cat2("x:", x) # prints 'Number: 1\n' (without space)
[Package toscutil version 2.7.4 Index]