str_wrap | R Documentation |
Wrap text
str_wrap(x, width = 80)
x |
A character vector to wrap. |
width |
The maximum width of the lines. |
A character vector with wrapped text.
str_wrap(rep("Hello, world!", 10))
str_wrap(rep("Hello, world!", 10), width = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.