Nothing

```
meansnps <-
function(strain.log, freq.log, libr, nuc, key) {
types <- length(strain.log) # number of unique types
exp <- 0
if (types!=1) {
for (i in 2:types) {
str1 <- which(key==strain.log[[i]])
for (j in 1:(i-1)) {
str2 <- which(key==strain.log[[j]])
exp <- exp + (freq.log[i]/sum(freq.log))*(freq.log[j]/sum(freq.log))*
(sum(!libr[[str1]] %in% libr[[str2]]) +
sum(!libr[[str2]] %in% libr[[str1]]))
}
}
}
return(exp)
}
```

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.