Trim character strings to specified display widths.
strtrim(x, width)
| Parameter | Description |
|---|---|
x |
a character vector, or an object which can be coerced to a character vector by as.character. |
width |
Positive integer values: recycled to the length of x. |
# NOT RUN {
strtrim(c("abcdef", "abcdef", "abcdef"), c(1,5,10))
# }