str_trunc {mlr3misc} | 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)