Pangkas string karakter ke lebar tampilan yang ditentukan.
strtrim(x, width)
| Parameter | Deskripsi |
|---|---|
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))
# }