if (FALSE) {
# Find multiple species
out <- searchbyterm(genus = "ochotona",
specificepithet = "(princeps OR collaris)", limit=10)
# iptrecordid
searchbyterm(iptrecordid = "7108667e-1483-4d04-b204-6a44a73a5219")
# you can pass more than one, as above, in a single string in parens
records <- "(7108667e-1483-4d04-b204-6a44a73a5219 OR 1efe900e-bde2-45e7-9747-2b2c3e5f36c3)"
searchbyterm(iptrecordid = records, callopts = list(verbose = TRUE))
# Specifying a range (in meters) for uncertainty in spatial location
# (use quotes)
out <- searchbyterm(class = "aves", stateprovince = "nevada",
coordinateuncertaintyinmeters = "<25")
out <- searchbyterm(class = "aves", stateprovince = "california", year = 1976,
coordinateuncertaintyinmeters = "<=1000")
# Specifying records by event date (use quotes)
out <- searchbyterm(class = "aves", stateprovince = "california",
eventdate = "2009-03-25")
# ...but specifying a date range may not work
out <- searchbyterm(specificepithet = "nigripes",
eventdate = "1935-09-01/1935-09-30")
# Pass in curl options for curl debugging
out <- searchbyterm(class = "aves", limit = 10,
callopts = list(verbose = TRUE))
# Use more than one year query
searchbyterm(genus = "mustela", specificepithet = "nigripes",
year = c('>=1900', '<=1940'))
searchbyterm(sex = "male", limit = 30)$data$sex
searchbyterm(lifestage = "juvenile", limit = 30)$data$lifestage
}
Run the code above in your browser using DataLab