traits.for.species<-function(trait, spp, char=NULL){
if(is.null(char)){
sapply(spp, function(sp)traits[traits$species==sp, trait])
}else{
sapply(spp, function(sp)traits[traits$species==sp, trait]==char)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.