string_trunc_right {goat} | R Documentation |
simple string truncation
Description
replacement for stringr::trunc() so we don't need a package dependency for just 1 function (our code was adapter therefrom)
Usage
string_trunc_right(string, width, trim_left = FALSE)
Arguments
string |
string that should be truncated |
width |
desired max length |
trim_left |
instead of right trunc (default), do left instead |
Value
truncated variant of input string
[Package goat version 1.0 Index]