Concatenation of Elements without Separator in R Programming - paste0() Function Last Updated : 01 Jun, 2020 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 Concatenation of Elements without Separator in R Programming - paste0() 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 Concatenating Objects in R Programming - combine() Function In R programming, coercion function c() and combine() function are similar to each other but are different in a way. combine() functions acts like c() and unlist() functions but uses consistent dplyr coercion rules. Moreover, combine() function is used to combine factors in R programming. In this ar 2 min read String Concatenation in R Programming String concatenation is a way of appending two or more strings into a single string whether it is character by character or using some special character end to end. There are many ways to perform string concatenation. Example: Input: str1 = 'Geeks' str2 = 'for' str3 = 'Geeks' Output: 'GeeksforGeeks 3 min read Printing out to the Screen or to a File in R Programming - cat() Function cat() function in R Language is used to print out to the screen or to a file. Syntax: cat(..., file = "", sep = " ", fill = FALSE, labels = NULL, append = FALSE)Parameters: ...: atomic vectors, names, NULL and objects with no output file: the file in which printing will be done sep: specified separ 2 min read Get or Set names of Elements of an Object in R Programming - names() Function names() function in R Language is used to get or set the name of an Object. This function takes object i.e. vector, matrix or data frame as argument along with the value that is to be assigned as name to the object. The length of the value vector passed must be exactly equal to the length of the obj 2 min read Like