Description Usage Arguments Author(s) Examples
This function pads/trims strings to the desired length. When trimming, it also adds "..." to the end of strings to indicated that they have been trimmed.
1 |
x |
A character vector. |
n |
Desired length. |
trail |
Appended to strings that are longer than |
pad |
A string which will be used to pad short strings to the desired length. |
side |
Which side should be padded. Either "left", "right", or "both".
Passed to |
Kristian D. Olsen
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.