Learn R Programming

pystr (version 2.0.0)

pystr_join: Join the elements of a character vector or list into a string.

Description

Return a string which is the concatenation of the elements in the iterable iterable, where sep is the separator between elements.

Usage

pystr_join(iterable, sep = "")

Arguments

iterable
A character vector.
sep
A character string.

Value

A character vector or list.

References

https://docs.python.org/3/library/stdtypes.html#str.join

See Also

pystr_split

Examples

Run this code
pystr_join(c("A", "B", "C"))
pystr_join(c(1, 2, 3), "+")
pystr_join(list(c(1, 2, 3), c(4, 5, 6)), ", ")

Run the code above in your browser using DataLab