read_observation: Read the Flemish observations from a species

Description Usage Arguments Value

Description

The selection uses several constraints. The user defined constraints are first.winter and species.covered'. Following contraints are imposed at the same time as the user defined contraints:

Usage

1
read_observation(species_id, first_year, latest_year, flemish_channel)

Arguments

species_id

The id of the species

first_year

first winter to import. defaults to 1992

latest_year

latest winter to import. Winter 2019 is defined as 2018-10-01 until 2019-03-31. Defaults the winter prior to last firsth of July. 2019-06-30 becomes 2018, 2019-07-01 becomes 2019

flemish_channel

a DBI connection to the Flemish database

Value

A data.frame with observations. The function only returns observations based on parent locations. Following rules apply for each combination of parent location, year and month.

  1. If the parent location has an observation, then return this observation.

  2. If some child location have observation, then return the sum of counts.

  3. If neither of the parent or child location has observations, then the counts are missing.

Complete = 1 indicates that the entire location was surveyed. In case of child locations, all child locations were surveyed in full. Complete = 0 indicates the location was only partially surveyed.


inbo/watervogelanalysis documentation built on June 19, 2019, 10:51 p.m.