Description Usage Arguments Value Checks Examples
View source: R/check-behaviour.r
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.
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)
|
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. |
A data frame of records that failed the checks.
The following checks have been implemented:
check_behaviour_loc
: all locs should conform to the standard
format, e.g. A.1, 22.1, or -1.8.
check_behaviour_mode
: the mode
of the observation, i.e.
how it was taken, should never be empty.
check_behaviour_time
: in general, behaviour observations
should all be taken between between 6am and 10pm, with the exception of
nest locs, which may be night locs.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.