# NOT RUN {
# }
# NOT RUN {
species_common <- c("Leopard Cat", "moonrat")
# ask = TRUE. Multiple matches for leopard cat will cause menu to pop up asking user input.
species.names.check1 <- checkSpeciesNames(speciesNames = species_common,
searchtype = "common",
accepted = TRUE,
ask = TRUE)
2 # we choose entry 2
species.names.check1
# ask = FALSE. Multiple matches for leopard cat will cause NA.
species.names.check2 <- checkSpeciesNames(speciesNames = species_common,
searchtype = "common",
accepted = TRUE,
ask = FALSE)
species.names.check2
# search for scientific names
species_scientific <- c("Tragulus", "Prionailurus bengalensis")
species.names.check3 <- checkSpeciesNames(speciesNames = species_scientific,
searchtype = "scientific",
accepted = TRUE,
ask = TRUE)
species.names.check3
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab