Nothing
make.Z.matrix <- function(genotype) {
# genotype : a vector (character or factor) with genotype labels
#if (class(genotype)=='character') {
# genotype <- factor(genotype)
#}
genotype <- factor(as.character(genotype), levels = as.character(unique(genotype)))
xx <- data.frame(geno = genotype)
mf <- model.frame(~ geno - 1, xx, drop.unused.levels = TRUE)
mt <- terms(mf)
f.terms <- attr(mt, "term.labels")[attr(mt,"dataClasses") == "factor"]
Z.t <- Matrix(model.matrix(mt, data = mf,
contrasts.arg = lapply(mf[,f.terms, drop = FALSE],
contrasts, contrasts=FALSE)))
return(Z.t)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.