Nothing
#' Trim a name and remove duplicate tabs and whitespaces
#'
#' Remove duplicate and misplaced whitespace characters
#'
#' @param taxon a character vector with a single taxon name
#' @export
#' @return a character vector
#' @examples
#' \dontrun{
#' trim(" Myrcia lingua")
#' }
trim <- function(taxon) {
taxon <- gsub("\\t", " ", taxon)
taxon <- gsub("\\s+", " ", taxon)
taxon <- gsub("^\\s+", "", taxon)
taxon <- gsub("\\s+$", "", taxon)
return(taxon)
}
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.