string_trunc_right | R Documentation |
replacement for stringr::trunc() so we don't need a package dependency for just 1 function (our code was adapter therefrom)
string_trunc_right(string, width, trim_left = FALSE)
string |
string that should be truncated |
width |
desired max length |
trim_left |
instead of right trunc (default), do left instead |
truncated variant of input string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.