label2table
returns a data frame with three columns named ``genus'', ``species'', and ``subspecies'' (with NA
if the level is missing).stripLabel
deletes the subspecies names from the input. If species = TRUE
, the species names are also removed, thus returning only the genus names.
abbreviateGenus
abbreviates the genus names keeping only the first letter. If species = TRUE
, the species names are abbreviated.
By default, these functions try to guess what is the separator between the genus, species and/or subspecies names. If an underscore is present in the input, then this character is assumed to be the separator; otherwise, a space. If this does not work, you can specify sep
to its appropriate value.