View source: R/tag_direction.R
tag_direction | R Documentation |
Determines direction of tag movement in systems where multiple antennas are used along a linear migration route.
tag_direction(x, LOC_vec)
x |
data frame generated using |
LOC_vec |
vector of antenna locations from first encountered to last encountered. |
tag_direction
determines the direction of movement for individual detection events in x. Direction is determined based on the order of locations from first encountered to last encountered, as specified in LOC_vec. Note that direction cannot be determined until the tag has been detected at multiple locations. Use site_summary
to identify all locations present in the multi-reader data, which must be included in LOC_vec.
Returns a tibble object. The column DIR displays direction, where U is upstream movement, D is downstream movement, and S is no movement, or a consecutive detection at the previous location.
Annika Putt <annika@instream.net>
import_ORFID
for importing data files from Oregon RFID ORMR and ORSR antenna readers.
join_multireader_data
for combining data from Oregon RFID ORMR and ORSR antenna readers into a multi-reader array.
site_summary
for identifying all locations present in a multi reader array
# Create a list containing compiled reader data: readers <- list(reader_us, reader_ds) # Join data into a multi-reader array: PIT_data <- join_multireader_data(readers) # List readers: unique(PIT_data$LOC) # Determine tag direction for animals moving from downstream to upstream: tag_direction(PIT_data, c("downstream_A1", "upstream_A1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.