Description Usage Arguments Value Examples
Extract the last digit (if available) from the characters of a string.
1  | last_digit(string)
 | 
string | 
 An object that inherits from class   | 
Returns the last digit (0-9) or NA if no digits are found.
1 2 3 4  | last_digit("123abc")
last_digit("123abc456")
last_digit("123")
last_digit("abc")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.