check_behaviour: Check records in behaviour table

Description Usage Arguments Value Checks Examples

View source: R/check-behaviour.r

Description

Perform data integrity checks on the behaviour table. Run all checks at once with check_bahaviour(), or perform individual checks with the specific functions outlined below.

Usage

1
2
3
4
5
6
7
check_behaviour(con, grid, year, observer)

check_behaviour_loc(con, grid, year, observer)

check_behaviour_mode(con, grid, year, observer)

check_behaviour_time(con, grid, year, observer)

Arguments

con

Connection to KRSP database

grid

character; one or more grids to search. Defaults to all grids.

year

integer; one or more years to search within. Defaults to all years.

observer

character; one or more observers to highlight errors for. Defaults to all observers.

Value

A data frame of records that failed the checks.

Checks

The following checks have been implemented:

Examples

1
2
3
4
5
6
7
con <- krsp_connect()
# run individual checks
check_behaviour_time(con, grid = "AG", year = 2013)
check_behaviour_loc(con, grid = c("AG", "JO"), observer = "MES")
check_behaviour_mode(con, year = 2010:2012)
# or perform them all at once
check_behaviour(con, grid = "JO", year = 2012)

mstrimas/krsp documentation built on May 23, 2019, 8:16 a.m.