Description Usage Arguments Value Checks Examples
View source: R/check-collars.r
Check that radio collars have been correctly entered into the trapping table.
1 | check_collars(con, grid, year)
|
con |
Connection to KRSP database |
grid |
character; one or more grids to search. Defaults to all grids. |
year |
integer; year to search within. Defaults to current year. |
A data frame of records that failed the checks.
The following checks have been implemented:
All trapping records with radio
= 1 (new collar), 2 (collar
on), 3 (collar change), or 4 (collar removed) should have a radio collar
frequency in the collar
field.
Radio collar frequencies should all be 6 digits with no decimal. If a decimal is used the frequency will get rounded to the nearest integer, e.g. 150.231 -> 150.
Any squirrel with radio
= 2 (collar on), 3 (collar change) or
4 (collar removed) should have a previous record with radio
= 1
(new collar).
All squirrels that currently have no collar (radio = 5
), but
previously had a collar (radio = 1-3
), should have record for a
collar removal (radio = 4
).
1 2 | con <- krsp_connect()
check_collars(con, grid = "KL", year = 2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.