Learn R Programming

ecoengine (version 0.8)

ee_observations: Observations List

Description

API endpoint that represents a list of observations.

Usage

ee_observations(page = NULL, page_size = 25, country = "United States",
  state_province = NULL, county = NULL, kingdom = NULL, phylum = NULL,
  order = NULL, clss = NULL, family = NULL, genus = NULL,
  scientific_name = NULL, kingdom_exact = NULL, phylum_exact = NULL,
  order_exact = NULL, clss_exact = NULL, family_exact = NULL,
  genus_exact = NULL, scientific_name_exact = NULL, remote_id = NULL,
  collection_code = NULL, source = NULL, min_date = NULL,
  max_date = NULL, georeferenced = FALSE, bbox = NULL, quiet = FALSE,
  progress = TRUE, foptions = list())

Arguments

page
Page number
page_size
The number of observations per page returned by the query. The package default is 25 observations. The API default, however, is 10. Setting this number higher will require fewer calls (i.e. pages) but a large size may als
country
country name
state_province
description needed.
county
California county. See data(california_counties)
kingdom
kingdom name
phylum
phylum name
order
order name
clss
class name
family
family name
genus
genus name.
scientific_name
A full scientific name
kingdom_exact
exact kingdom name
phylum_exact
exact phylum name
order_exact
exact order name
clss_exact
class name
family_exact
exact family name
genus_exact
exact genus name
scientific_name_exact
exact scientific name
remote_id
remote ID
collection_code
collections code
source
data source. See ee_sources
min_date
Lower date bound. Most be in format Y-m-D h:m:s. This package uses lubridate's ymd_hms function to format dates.
max_date
upper date bound. Most be in format Y-m-D h:m:s. This package uses lubridate's ymd_hms function to format dates.
georeferenced
Default is FALSE. Set to TRUE to return only georeferenced records.
bbox
Set a bounding box for your search. Use format bbox=-124,32,-114,42
quiet
Default is FALSE. Set to TRUE to supress messages.
foptions
A list of additional arguments for httr. There is no reason to use this argument except for debugging purposes.
progress
Progress bar is set to TRUE by default. Use FALSE especially when calling functions inside documents.

Value

  • data.frame

Examples

Run this code
us <- ee_observations(country = "United States")
pinus <- ee_observations(scientific_name = "Pinus")
lynx_data <- ee_observations(genus = "Lynx")
# Georeferenced data only
lynx_data <- ee_observations(genus = "Lynx", georeferenced = TRUE)
animalia <- ee_observations(kingdom = "Animalia")
Artemisia <- ee_observations(scientific_name = "Artemisia douglasiana")
asteraceae <- ee_observationss(family = "asteraceae")
vulpes <- ee_observations(genus = "vulpes")
Anas <- ee_observations(scientific_name = "Anas cyanoptera", page = "all")
loons <- ee_observations(scientific_name = "Gavia immer", page = "all")
plantae <- ee_observations(kingdom = "plantae")
chordata <- ee_observations(phylum = "chordata")
# Class is clss since the former is a reserved keyword in SQL.
aves <- ee_observations(clss = "aves")

Run the code above in your browser using DataLab