getYearProjSite: Get project and site names, given a receiver serial number...

Description Usage Arguments Details Value Author(s) See Also

View source: R/getYearProjSite.R

Description

This is meant to provide project and site labels for plots and summary files. Either a time range (tsLo, tsHi) or a boot number range (bnLo, bnHi) must be provided, but not both.

Usage

1
getYearProjSite(serno, ts = NULL, bn = NULL, motusProjectID = NULL)

Arguments

serno

character vector of serial numbers

ts

numeric vector of length 2; start and end time

bn

integer vector of length 2; start and end boot session numbers; ignored if serno is a Lotek receiver.

motusProjectID

integer scalar; motus project ID to use in case no deployments found for this receiver.

Details

If a time range is provided, all deployments that overlap the specified time range are returned, and the range of timestamps for these deployments is returned in the tsStart, tsEnd fields.

If a boot session range is provided and the receiver is a sensorgnome, all deployments that include the specified boot session range are returned, and the range of boot sessions from these is returned in the bnStart, bnEnd fields. It is assumed the caller has obtained a lock on that receiver's DB, via lockSymbol(serno).

In either case, if the receiver is a SensorGnome, the return value includes valid bnStart and bnEnd - the range of boot sessions corresponding to the corresponding receiver deployment.

Value

a data.frame with these columns:

Returns NULL if neither bn nor ts is specified.

If there were no matching deployment records, and no motus project is given, then the catch-all project 0 is used.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm

See Also


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.