substr_end | R Documentation |
This is a wrapper for substr
for the extraction of the last n letters of a character/word.
substr_end(x, n)
x |
A character or character vector. |
n |
A number which defines the number of letters from the end of the word to be retained. |
A character or character vector, as inputted, but including only the last n letters of each element.
Edward Lavender
substr_end(c("edward", "john"), 2)
substr_end(as.character(seq.Date(as.Date("2016-01-01"), as.Date("2016-01-31"), 1)), 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.