## Not run:
# sp <- c("Lavandula stoechas", "Carpobrotus edulis", "Rhododendron ponticum",
# "Alkanna lutea", "Anchusa arvensis")
# is_native(sp[1], where = "Islas_Baleares", region = "europe")
# lapply(sp, is_native, where = "Continental US", region = "america")
# lapply(sp, is_native, where = "Islas_Baleares", region = "europe")
#
# # combine output for many taxa
# res <- lapply(sp, is_native, where = "Continental US", region = "america")
# library("dplyr")
# rbind_all(res)
# ## End(Not run)
Run the code above in your browser using DataCamp Workspace