strs_join | R Documentation |
strs_join
concatenates elements of iterable
using sep
. It is similar to
Python's str.join()
.
strs_join(sep, iterable)
sep |
A string separator used to join the elements. |
iterable |
A character vector to be joined. |
A single string with elements of iterable
joined by sep
.
Python str.join() documentation
strs_join("-", c("hello", "world"))
strs_join("", c("hello", "world")) # no separator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.