meanImp_emmeans <- function(ind,peptide=1,tabdata,metacond) {
tempdata <- cbind(reponse=tabdata[peptide,,ind],data.frame(fact=factor(metacond)))
templm <- lm(reponse~fact,data=tempdata)
return(summary(emmeans::emmeans(templm,specs = "fact"))$emmean)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.