Description Usage Arguments Value
View source: R/aiding_functions.R
Get substrings from the lefthand side
1 | leftstr(x, n)
|
x |
a character vector (or something having an as.character method) |
n |
a single number: if n>=0, the leftmost n characters of each element of x are selected, if n<0 the (-n) rightmost characters are omitted |
character vector with leftside substrings of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.