how to create character vector in r
Create a character vector with more than one element. To create a character vector with more than one element, use the combine function, c() : Notice that this time, R tells you that your vector has length 2 and that the first element has five characters and the second element has six characters. 1  Add a Comment.2  Print.o create a character vector with more than one element, use the combine function, c() : Notice that this time, R tells you that your vector has length 2 and that the first element has five characters and the second element has six characters. 1  Add a Comment.