Get all observations for a particular species or set of species

Share:

Description

Get all observations for a particular species or set of species

Usage

1
npn_allobssp(speciesid, startdate = NULL, enddate = NULL, ...)

Arguments

speciesid

species id numbers, from 1 to infinity, potentially, use e.g., c(52, 53, etc.) if more than one species desired (numeric)

startdate

start date of data period desired, see format in examples (character)

enddate

end date of data period desired, see format in examples (character)

...

Curl options passed on to GET

Value

A list with slots for taxa, stations, phenophase (metadata) and data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# Lookup names
lookup_names(name='Pinus', type='genus')

# Get data on one species
npn_allobssp(speciesid = 52, startdate='2008-01-01', enddate='2011-12-31')

# Get data on two species
npn_allobssp(speciesid = c(52, 53), startdate='2008-01-01', enddate='2011-12-31')

# Get data on one species, convert to a single data.frame
npn_allobssp(speciesid = 52, startdate='2008-01-01', enddate='2011-12-31')

## End(Not run)