strEndsWith <- function(haystack, needle) { hl <- nchar(haystack) nl <- nchar(needle) if(nl > hl) { return(FALSE) } else { return(substr(haystack, hl-nl+1, hl) == needle) } }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.