You can do it with paste
function
> paste(c('A', 'B', 'C'), collapse=", " )
[1] "A, B, C"
More Related Contents:
- Making a string concatenation operator in R
- Convert string to a variable name
- Removing html tags from a string in R
- How do I concatenate strings?
- How to split a string into substrings of a given length? [duplicate]
- How to convert variable (object) name into String [duplicate]
- Load R package from character string
- How to efficiently concatenate strings in go
- Getting and removing the first character of a string
- pass character strings to ggplot2 within a function
- How do I concatenate strings in Swift?
- Insert a character at a specific location in a string
- Convert R vector to string vector of 1 element [duplicate]
- as.numeric with comma decimal separators?
- Count word occurrences in R
- converting datetime string to POSIXct date/time format in R
- How to concatenate strings with padding in sqlite
- Extract numeric part of strings of mixed numbers and characters in R
- Use character string as function argument
- How can I remove repeated characters in a string with R?
- Split a character vector into individual characters? (opposite of paste or stringr::str_c)
- Repeat and concatenate a string N times
- Extract the first (or last) n characters of a string
- Insert line breaks in long string — word wrap
- How to combine multiple character columns into a single column in an R data frame
- Ignore escape characters (backslashes) in R strings
- Python Pandas concatenate a Series of strings into one string
- Efficiently repeat a character/string n times in Scala
- What is the difference between VBScript’s + and & operator?
- Concatenate / paste a column by a group and add to original data