mock_checklist <- data.frame(
genus = c("bird", "bird", "bird", "bird", "bird", "bird", "bird",
"bird", "bird", "bird"),
species = c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"),
species_names = c("bird_a", "bird_b", "bird_c", "bird_d", "bird_e",
"bird_f","bird_g", "bird_h", "bird_i", "bird_j"),
sampled = c(TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE),
endemicity_status = c("endemic", "endemic", "endemic", "nonendemic",
"endemic", "nonendemic", "endemic", "endemic",
"endemic", "endemic"),
remove_species = (rep(FALSE, 10))
)
missing_species <- count_missing_species(
checklist = mock_checklist,
phylo_name_col = "species_names",
genus_name_col = "genus",
in_phylo_col = "sampled",
endemicity_status_col = "endemicity_status",
rm_species_col = NULL
)
Run the code above in your browser using DataLab