gorillaParasites <- helminthR::findHost("Gorilla", "gorilla")
# An example of how to query multiple hosts when you have a
# vector of host species names
hosts <- c("Gorilla gorilla", "Peromyscus leucopus")
plyr::ldply(hosts, function(x)
{helminthR::findHost(unlist(strsplit(x, " "))[1], unlist(strsplit(x," "))[2])})
Run the code above in your browser using DataLab