Concatenation of Elements without Separator in R Programming - paste0() Function Last Updated : 01 Jun, 2020 Summarize Comments Improve Suggest changes Share 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 Replace the Elements of a Vector in R Programming - replace() 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 Replace the Elements of a Vector in R Programming - replace() Function replace() function in R Language is used to replace the values in the specified string vector x with indices given in list by those given in values. Syntax: replace(x, list, values) Parameters: x: vector list: indices values: replacement values Example 1: Python3 # R program to illustrate # replace 1 min read Getting Match of an Element within a Vector in R Programming - charmatch() Function charmatch() function in R Programming Language is used to find matches between two arguments. Syntax: charmatch(x, table, nomatch = NA_integer_) Parameters: x: the values to be matchedtable: the values to be matched againstnomatch: the integer value to be returned at non-matching positionr - charma 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 Make Elements of a Vector Unique in R Programming - make.unique() Function make.unique() function in R Language is used to return elements of a vector with unique names by appending sequence numbers to duplicates. Syntax: make.unique(names, sep)Parameters: names: Character vector with duplicate names sep: Separator to be used  Example 1: Python3 # R program to make uniqu 1 min read Convert an Object to a String in R Programming - toString() Function toString() function in R Language is used to convert an object into a single character string. Syntax: toString(x, width) Parameters: x: Object width: maximum string width Example 1: Python3 1== # R program to convert an object to string # Creating a vector x <- c("Geeks", "for 1 min read Like