VOOZH about

URL: https://www.geeksforgeeks.org/r-language/concatenation-of-elements-without-separator-in-r-programming-paste0-function/

⇱ Concatenation of Elements without Separator in R Programming - paste0() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Concatenation of Elements without Separator in R Programming - paste0() Function

Last Updated : 15 Jul, 2025
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"
Comment
Article Tags:

Explore