str_trunc | R Documentation |
str_trunc()
truncates a string to a given width.
str_trunc(str, width = 0.9 * getOption("width"), ellipsis = "[...]")
str |
( |
width |
( |
ellipsis |
( |
(character()
).
str_trunc("This is a quite long string", 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.