utils-paste | R Documentation |
Paste and combine
paste_c(x, y, collate = TRUE, sep = "")
paste_combine(..., collate = TRUE, sep = "")
collapse0(..., sep = "")
x , y , ... |
Vectors to paste and/or combine |
collate |
Logical; |
sep |
A character string to separate terms |
A character
vector
x <- letters[1:5]
y <- 1:3
z <- month.abb[c(1, 12)]
paste_combine(x, y)
paste_combine(x, y, z)
paste_combine(x, y, z, sep = ".")
paste_combine(x, y, sep = "_")
paste_combine(x, y, collate = FALSE)
collapse0(list(1:3, letters[1:3]), 5:7, letters[5:7])
collapse0(1:3, letters[5:7], sep = "_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.