View source: R/q.substring_right.R
q.substring_right | R Documentation |
Extract a substring n characters from the right end of a string
q.substring_right(x, n)
x |
string |
n |
number of characters from the right end of the string to extract |
Extract a substring n characters from the right end of a string. This is useful when traversing a vector, list or data frame with strings of different lengths.
A character vector of length n
Abdul Malik Sulley
q.substring_right("twelve", 3) # "lve"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.