create.mm.function <- function(match.score, mismatch.score) {
return(function(first.letter, second.letter) {
if (nchar(first.letter) != 1)
stop('first.letter arg wrong length - should be single character')
if (nchar(second.letter) != 1)
stop('second.letter arg wrong length - should be single character')
if (first.letter == second.letter) match.score else mismatch.score
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.