paste {base} | R Documentation |
paste
converts its arguments to character strings, and
concatenates them (separating them by the string given by sep
).
If a value is specified for collapse
, the values in the result
are then concatenated into a single string, with the elements being
separated by the value of collapse
.
The concatenated value is returned as the value of paste
.
paste(..., sep = " ", collapse = NULL)
as.character
, substr
, nchar
,
strsplit
.
paste(1:12) # same as as.character(..)
paste("A", 1:6, sep = "")
paste("Today is", system.date())