Description Usage Arguments Value Author(s) See Also
Truncates one or more strings to a specified length, adding an ellipsis (...) to those strings that have been truncated. The justification of the strings can be controlled by the justify argument as in format, which does the padding and justification.
1 | truncString(x,maxlen=20,justify="left")
|
x |
A vector of strings. |
maxlen |
The maximum length of the returned strings. |
justify |
Justification for the new strings. |
The string(s) passed as x now with a maximum length of maxlen.
Jim Lemon
substr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.