Concatenation of Elements without Separator in R Programming - paste0() Function Last Updated : 15 Jul, 2025 Comments Improve Suggest changes Like Article Like Report 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: Python3 # R program to illustrate # paste0 function # Calling paste0() function paste0("GFG", "gfg") paste0("GFG", " gfg") paste0(letters[1:4]) Output : [1] "GFGgfg" [1] "GFG gfg" [1] "a" "b" "c" "d" Example 2: Python3 # R program to illustrate # paste0 function # Calling paste0() function paste0(letters[1:6], collapse ="-") paste0("G", 1:5) Output: [1] "a-b-c-d-e-f" [1] "G1" "G2" "G3" "G4" "G5" Comment More infoAdvertise with us Next Article Read contents of a CSV File in R Programming - read.csv() Function K Kanchan_Ray Follow Improve Article Tags : R Language R String-Functions Similar Reads Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function paste0() and sprintf() functions in R Language can also be used to add leading zeros to each element of a vector passed to it as argument. Syntax: paste0("0", vec) or sprintf("%0d", vec)Parameters: paste0: It will add zeros to vector sprintf: To format a vector(adding zeros) vec: Original vector da 1 min read Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function paste0() and sprintf() functions in R Language can also be used to add leading zeros to each element of a vector passed to it as argument. Syntax: paste0("0", vec) or sprintf("%0d", vec)Parameters: paste0: It will add zeros to vector sprintf: To format a vector(adding zeros) vec: Original vector da 1 min read Read contents of a CSV File in R Programming - read.csv() Function read.csv() function in R Language is used to read "comma separated value" files. It imports data in the form of a data frame. The read.csv() function also accepts a number of optional arguments that we can use to modify the import procedure. we can choose to treat the first row as column names, sele 3 min read Read contents of a CSV File in R Programming - read.csv() Function read.csv() function in R Language is used to read "comma separated value" files. It imports data in the form of a data frame. The read.csv() function also accepts a number of optional arguments that we can use to modify the import procedure. we can choose to treat the first row as column names, sele 3 min read Read contents of a CSV File in R Programming - read.csv() Function read.csv() function in R Language is used to read "comma separated value" files. It imports data in the form of a data frame. The read.csv() function also accepts a number of optional arguments that we can use to modify the import procedure. we can choose to treat the first row as column names, sele 3 min read Read contents of a CSV File in R Programming - read.csv() Function read.csv() function in R Language is used to read "comma separated value" files. It imports data in the form of a data frame. The read.csv() function also accepts a number of optional arguments that we can use to modify the import procedure. we can choose to treat the first row as column names, sele 3 min read Like