uniqueFilter: Filter out group checklists.

Description Usage Arguments Details Value References Examples

Description

Function to remove all but one of a set of eBird group checklists.

Usage

1
uniqueFilter(dat, group.id, sub.id)

Arguments

dat

The original eBird data.frame to filter.

group.id

The name of the group ID column, usually "GROUP.ID".

sub.id

The name of the sub ID column, or otherwise. Experimental, have not really tested, but in theory can be used to sort dat so that, for instance, only the first input of a set of group checklists is kept.

Details

This function is called internally by cleaner(), but is also exported here, as it may prove generally useful to some. Note that the results are saved into the active R session, as opposed to written to file like the cleaner() function.

Value

A filtered data.frame.

References

Team eBird.

Examples

1
2
3
4
5
6
7
8
#load the example data file and delete group checklist duplicate entries
data(ex)
dim(ex)
ex2 <- uniqueFilter(ex, "GROUP_ID")
dim(ex2)
ex3 <- uniqueFilter(ex, "GROUP_ID", "SUB_ID")
dim(ex3)
setdiff(ex2$SUB_ID, ex3$SUB_ID)

eliotmiller/ebirdr documentation built on May 14, 2019, 10:33 a.m.