# NOT RUN {
# Find multiple species
(out <- searchbyterm(genus = "ochotona",
specificepithet = "(princeps OR collaris)", limit=10))
# Specifying a range (in meters) for uncertainty in spatial location
# (use quotes)
out <- searchbyterm(class = "aves", state = "nevada", error = "<25")
out <- searchbyterm(class = "aves", state = "california", year = 1976,
error = "<=1000")
# Specifying records by event date (use quotes)
out <- searchbyterm(class = "aves", state = "california",
date = "2009-03-25")
# ...but specifying a date range may not work
out <- searchbyterm(specificepithet = "nigripes",
date = "1935-09-01/1935-09-30")
# Pass in curl options for curl debugging
library(crul)
out <- searchbyterm(class = "aves", limit = 10, config=verbose())
# out <- searchbyterm(class = "aves", limit = 500, config=timeout(1))
# Use more than one year query
searchbyterm(class = "aves", year = c(">=1976", "<=1986"))
# full text search - note the URL message
searchbyterm(query = "Mustela nigripes", limit = 50)
searchbyterm(query = "bear", limit = 50)
# }
Run the code above in your browser using DataCamp Workspace