Identifies open nomenclature (aff., cf.) in species scientific name, classification under species level (var. and subsp.), and common mistakes in the a species scientific name. It creates a new column with the original string and the new suggested name. It also flags problematic names (character string with numbers, authors, wrong case, or other names besides genus and epithet etc).
Identifies open nomenclature (aff., cf.) in species scientific name, classification under species level (var. and subsp.), and common mistakes in the a species scientific name. It creates a new column with the original string and the new suggested name. It also flags problematic names (character string with numbers, authors, wrong case, or other names besides genus and epithet etc).
check_string(species = NULL, drop_infra = FALSE, flora = TRUE) check_string(species = NULL, drop_infra = FALSE, flora = TRUE)
| species | species name in a raw format |
|---|---|
| drop_infra | Logical. Either to remove any infraspecies classification. Defaults to FALSE |
| flora | Logical. Either to perform checks specific to plants. Defaults to TRUE |
Data frame with `verbatimSpecies` as in the original input, `speciesStatus` with the flags in original data, `species` with a suggestion for a more correct species name, and `remove_author` a boolean column indicating if the original input had author names. See Details for a description of flags in the column `speciesStatus`.
Data frame with `verbatimSpecies` as in the original input, `speciesStatus` with the flags in original data, `species` with a suggestion for a more correct species name, and `remove_author` a boolean column indicating if the original input had author names. See Details for a description of flags in the column `speciesStatus`.
Possible flags returned in `species_status`:
possibly_okscientific name following the expected pattern Genus epithet
not_Genus_epithet_formatscientific name not following the expected pattern Genus epithet
varietyspecies scientific name with variety
subspeciesspecies scientific name with subspecies
formspecies scientific name with form
conferreopen nomenclature cf. in species scientific name
affinisopen nomenclature aff. in species scientific name
groupopen nomenclature gr. in species scientific name
name_w_authorsspecies scientific name has authors
not_name_has_digitsspecies scientific name has digits, not a valid name
indetspecies identified only at genus level
family_as_genusfamily as genus, not a valid name
order_as_genusorder as genus, not a valid name
species_novaspecies name contains an indication of a new species, possibly not yet a valid name
name_w_non_asciispecies name has non ASCII characters, not a valid name
hybrid_specieshybrid species
not_availableany species entry related to Not Available (NA) status
Possible flags returned in `species_status`:
possibly_okscientific name following the expected pattern Genus epithet
not_Genus_epithet_formatscientific name not following the expected pattern Genus epithet
varietyspecies scientific name with variety
subspeciesspecies scientific name with subspecies
formspecies scientific name with form
conferreopen nomenclature cf. in species scientific name
affinisopen nomenclature aff. in species scientific name
groupopen nomenclature gr. in species scientific name
name_w_authorsspecies scientific name has authors
not_name_has_digitsspecies scientific name has digits, not a valid name
indetspecies identified only at genus level
species_novaspecies name contains an indication of a new species, possibly not yet a valid name
name_w_non_asciispecies name has non ASCII characters, not a valid name
not_availableany species entry related to Not Available (NA) status
hybrid_specieshybrid species
subfamily_as_genussubfamily as genus, not a valid name
family_as_genusfamily as genus, not a valid name
order_as_genusorder as genus, not a valid name
Sara Mortara & Andrea Sánchez-Tapia
Sara Mortara & Andrea Sánchez-Tapia
check_string("Lindsaea lancea var. falcata")#> Warning: argument is not an atomic vector; coercing#> Warning: argument is not an atomic vector; coercing#> verbatimSpecies speciesStatus species #> 1 Lindsaea lancea var. falcata variety Lindsaea lancea var. falcata #> remove_author #> 1 TRUE#> Warning: argument is not an atomic vector; coercing#> Warning: argument is not an atomic vector; coercing#> verbatimSpecies speciesStatus species #> 1 Lindsaea lancea var. falcata variety Lindsaea lancea var. falcata #> 2 Asplenium Aff. truncorum affinis Asplenium truncorum #> remove_author #> 1 TRUE #> 2 FALSEcheck_string("Asplenium sp.")#> Warning: argument is not an atomic vector; coercing#> Warning: argument is not an atomic vector; coercing#> verbatimSpecies speciesStatus species remove_author #> 1 Asplenium sp. indet Asplenium sp. FALSEcheck_string("Lindsaea lancea var. falcata")#> Warning: argument is not an atomic vector; coercing#> Warning: argument is not an atomic vector; coercing#> verbatimSpecies speciesStatus species #> 1 Lindsaea lancea var. falcata variety Lindsaea lancea var. falcata #> remove_author #> 1 TRUE#> Warning: argument is not an atomic vector; coercing#> Warning: argument is not an atomic vector; coercing#> verbatimSpecies speciesStatus species #> 1 Lindsaea lancea var. falcata variety Lindsaea lancea var. falcata #> 2 Asplenium Aff. truncorum affinis Asplenium truncorum #> remove_author #> 1 TRUE #> 2 FALSEcheck_string("Asplenium sp.")#> Warning: argument is not an atomic vector; coercing#> Warning: argument is not an atomic vector; coercing#> verbatimSpecies speciesStatus species remove_author #> 1 Asplenium sp. indet Asplenium sp. FALSE