View source: R/S03_Utilities.R
squish | R Documentation |
Function that combines elements of a character vector into a single string.
squish(chr_vec, between = "")
chr_vec |
A character vector. |
between |
The value to use as spacing between
each element in |
A character string.
# Collapse a character vector
print( squish( c( "A", "B", "C" ) ) )
# Collapse a characcter vector with custom spacing
print( squish( c( "1", "2", "3" ), " + " ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.