publicLotekToSG: filter and convert public Lotek tag detections to SG format

Description Usage Arguments Value Author(s)

View source: R/publicLotekToSG.R

Description

A set of .rds files generated by publicDTA() from a set of Lotek DTA files for a single receiver are merged, filtered, and output as a SensorGnome-style site tag dataset.

Usage

1
publicLotekToSG(absDir, year, tagDB, ...)

Arguments

absDir

An absolute directory in the SensorGnome hierarchy which corresponds to a single site. All files in the folder with names ending in "_raw_public_tags.rds" should be from the same receiver, which is treated as a site. The project name and site name are taken to be the last two components of the path. e.g. /SG/contrib/2013/taylor/sonora

year

the deployment year

tagDB

a .csv file of tag registrations, containing only the public fields proj, id, freq, bi

...

further parameters to filterTags(), which is called on the merged dataset.

Value

A dataframe compatible with SensorGnome databases, consisting of non-duplicated filtered tag records present in tagDB

As a side-effect, the dataframe is written to a file called YEAR_PROJ_SITE_alltags.rds in the folder path.

Author(s)

John Brzustowski jbrzusto is at fastmail.fm


jbrzusto/sensorgnome-R-package documentation built on May 18, 2019, 9:19 p.m.