findSpecies <- function(string){
# First find all the cells that contain the string
cellsOI <- apply(species, 2, function(x) grepl(string, x, ignore.case=TRUE))
# Now determine all the rows that of interest
rowsOI <- apply(cellsOI,1,sum)
# Display the rows of interest
species[rowsOI>0,]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.