Description Usage Arguments Value Examples
substrRight returns a substring of a string or vector of strings of length less than or equal to a given 'n', starting with the right-most character.
1 | substrRight(x, n)
|
x |
Character string or vector of character strings |
n |
Number of characters to exract from strings starting with the right-most character. |
A string or vector of strings of length less than or equal to n, consisting of characters on the right side of the strings.
1 2 3 4 5 6 7 8 | #x = "OneString"
#x2 = c("ThisIsOne", "ThisIsTwo", "This is three", "And this4")
#Regular substr() usage
#substr(x, start = 1, stop = 3)
#substr(x2, start = 1, stop = 3)
#substrRight usage
#substrRight(x, n = 3)
#substrRight(x2, n = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.