![]() |
VOOZH | about |
paste0() function in R Language is used to concatenate all elements without separator.
Syntax: paste0(..., collapse = NULL) Parameters: ...: one or more R objects, to be converted to character vectors. collapse: an optional character string to separate the results.Example 1: Output :
[1] "GFGgfg" [1] "GFG gfg" [1] "a" "b" "c" "d"Example 2: Output:
[1] "a-b-c-d-e-f" [1] "G1" "G2" "G3" "G4" "G5"