Clean and normalize taxonomic name
clean_taxonomic_name.RdClean taxonomic names by removing common botanical annotation patterns that interfere with matching: - "sp.", "sp", "spp.", "spp" after genus (e.g., "Garcinia sp." → "Garcinia") - "cf.", "cf", "aff.", "?" between genus and species (e.g., "Garcinia cf. kola" → "Garcinia kola") - Extra whitespace and punctuation
Examples
clean_taxonomic_name("Fabaceae sp.") # → "Fabaceae"
#> [1] "Fabaceae"
clean_taxonomic_name("Garcinia cf. kola") # → "Garcinia kola"
#> [1] "Garcinia kola"
clean_taxonomic_name("Brachystegia spp") # → "Brachystegia"
#> [1] "Brachystegia"
clean_taxonomic_name("Gilbertiodendron ? dewevrei") # → "Gilbertiodendron dewevrei"
#> [1] "Gilbertiodendron dewevrei"