View source: R/detectionSummary.R
detectionSummary | R Documentation |
Produce standard metrics of detection. Metrics include Number of detections, Number of receiver stations detected on, Number of days detected, Number of Days at Liberty and Detection Index.
detectionSummary(ATTdata, sub = "%Y-%m", download_date = NULL)
ATTdata |
an 'ATT' object created using |
sub |
argument to define temporal subsets. Temporal subsets are currently restricted to monthly ('%Y-%m') or weekly ('%Y-%W'). Defaults to monthly if none is provided. |
download_date |
date the array was downloaded in the form 'yyyy-mm-dd' for calculating detection summary before the collection of full dataset has been collected. If none provided, it is assumed complete data has been collected, and detection indices are calculated as such. |
Produces a list of tibbles containing Overall (full tag life) and Subsetted (user-defined temporal subsets) metrics of detection. Temporal subsets are currently restricted to monthly ('%Y-%m') or weekly ('%Y-%W').
Input data needs to be setup using setupData
## Import example datasets
data(IMOSdata)
data(taginfo)
data(statinfo)
## Setup data
ATTdata<- setupData(Tag.Detections = IMOSdata,
Tag.Metadata = taginfo,
Station.Information = statinfo,
source = "IMOS")
## Estimate detecion metrics with monthly subsets chosen
dSum<-detectionSummary(ATTdata, sub = "%Y-%m")
## Metrics of detection for full tag life
dSum$Overall
## Metrics of detection for each temporal subset
dSum$Subsetted
## If the full dataset hasn't been collected yet, detection indicies
## can be calculated to the most recent date when the acoustic array
## was downloaded. Indicate latest download date in the format 'yyyy-mm-dd'
dSum_partial <- detectionSummary(ATTdata, download_date = "2014-01-01")
dSum_partial$Overall
dSum_partial$Subsetted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.