Nothing
#' Vernacular name search
#'
#' Search for taxa using vernacular names
#'
#' @param name a vernacular name
#' @param exact approximate or exact match?
#' @export
#' @return a data frame of results or NA
#' @examples
#' \dontrun{
#' vernacular("pimenta", exact = TRUE)
#' vernacular("pimenta", exact = FALSE)
#' }
vernacular <- function(name, exact = FALSE) {
name <- trim(name)
if (exact) {
res <- vernacular.names[grep(paste("^", name, "\\/", sep = ""), vernacular.names$vernacular.name, ignore.case = TRUE), ]
} else {
res <- vernacular.names[agrep(name, vernacular.names$vernacular.name, ignore.case = TRUE), ]
}
if (nrow(res) == 0L) {
NA
} else {
merge(all.taxa[, c("id", "search.str", "family")], res, by = "id")
}
}
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.