str_trunc {mlr3misc} | R Documentation |
Truncate Strings
Description
str_trunc()
truncates a string to a given width.
Usage
str_trunc(str, width = 0.9 * getOption("width"), ellipsis = "[...]")
Arguments
str |
( |
width |
( |
ellipsis |
( |
Value
(character()
).
Examples
str_trunc("This is a quite long string", 20)
[Package mlr3misc version 0.15.1 Index]