ascii_sort <- function(string) {
string2 <- force(string) # Duplicate so string isn't modified
.Call('LookR_cpp_str_sort', string, PACKAGE = 'LookR')
}
ascii_order <- function(string) {
match(ascii_sort(string), string)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.