Description Usage Arguments Details Value Author(s) See Also Examples
Shorten names in a character vector, keeping the begining and the end
1 | shorten(char, max_size = 16, tail_keep = 3)
|
char |
A character vector with the names. |
max_size |
Integer. Number max of character. If 0, no limits. Will not cut words < of 8 letters. Default is 16. Will keep the first letters and the last ones (a least 3) |
tail_keep |
Integer. Number max of character to keep at the end of the words. If 0, don't keep any character. Must be < to max_size. Default is 3. |
The function keep
A character vector with shorten names.
Joris Muller
This function is used by tidy_rname
to produce
the short enough names.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.