Description Usage Arguments Examples
This function takes a vector of character strings and turns it into a single string with line breaks after each item.
1 | vector_to_single_string_w_linebreaks(myvector, cr = 1)
|
myvector |
A vector of character strings |
cr |
Number of line breaks after each element, defaults to 1 |
1 2 | vec <- c("Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun")
vector_to_single_string(vec, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.