taxotools (version 0.0.132)

match_lists: match two taxonomic lists

Description

match two taxonomic lists using canonical names

Usage

match_lists(master, checklist, masterfld, checklistfld)

Value

a list with data frames containing matched records, records only in master and checklist and statistics about the records including Jaccard index

Arguments

master

master taxonomic list

checklist

match taxonomic list

masterfld

field name for canonical name in master list

checklistfld

field name for canonical name in match list

See Also

Other List functions: DwC2taxo(), cast_cs_field(), compact_ids(), get_synonyms(), melt_cs_field(), merge_lists(), syn2taxo(), synonymize_subspecies(), taxo2DwC(), taxo2doc(), taxo2syn(), wiki2taxo()

Examples

Run this code
# \donttest{
master <- data.frame("canonical" = c("Abrothrix longipilis",
                                    "Acodon hirtus",
                                    "Akodon longipilis apta",
                                    "Akodon longipilis castaneus",
                                    "Chroeomys jelskii",
                                    "Acodon jelskii pyrrhotis"),
                    stringsAsFactors = FALSE)
checklist <- data.frame("canonical" = c("Abrothrix longipilis",
                                    "Akodon longipilis apta",
                                    "Akodon longipilis castaneus",
                                    "Abrothrix jelskii",
                                    "Acodon jelskii pyrrhotis"),
                    stringsAsFactors = FALSE)
match_lists(master,checklist,"canonical","canonical")
# }

Run the code above in your browser using DataLab