keepFirstN | R Documentation |
Truncate an element, or each element of a vector, by removing all but the first N characters of each element.
keepFirstN(x, n)
x |
A vector whose element(s) will be truncated. |
n |
An integer specifying the number of characters to keep. |
Caitlin Collins caitiecollins@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.