Description Usage Arguments Examples
Truncate longer texts
1 | text_trunc(x, value = 15, symbol = "...", sep = "")
|
x |
a vector. |
value |
threshold for truncation. |
symbol |
the suffix symbol for the truncation. Default: |
sep |
separator between the three-dots and truncated text. |
1 2 3 4 5 | ## Not run:
text_trunc(c("apple", "this is a long text with more letters in it"))
text_trunc("The quick brown fox jumps over the lazy dog", 20, sep = " ")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.