substrEnd | R Documentation |
Extract a substring from a given start position to the position
determined by subtracting endDiff
from the string length.
substrEnd(x, start, endDiff)
x |
A character string from which the substring is extracted. |
start |
The starting position for the substring extraction. |
endDiff |
The difference to subtract from the string length to determine the end position. |
A substring of the input character string.
substr()
substrEnd("12345", 1, 1)
substrEnd("12345", 1, 2)
substrEnd("12345", 2, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.