compress_txt_data: Compress Rounded Telemetry Records

View source: R/compress_txt_data.R

compress_txt_dataR Documentation

Compress Rounded Telemetry Records

Description

Compresses cleaned records, showing the first and last detection on each receiver for each tag, and how many times it was detected on that receiver in that window.

Usage

compress_txt_data(
  data_df = NULL,
  max_min = 2,
  assign_week = T,
  week_base = "0901",
  append_week = c("first", "last")
)

Arguments

data_df

data.frame containing all valid observations, output from read_txt_data(), followed by clean_raw_data(), followed by round_tag_codes()

max_min

maximum number of minutes between detections of a tag before it's considered a different "group" of detections. Default is 2.

assign_week

Should this function assign a week number to the output? Default is TRUE

week_base

If assigning week numbers, the date when the numbering should start in "MMDD" format

append_week

If assigning weeks, should the week be assigned based on the first or last time a tag was detected on that receiver? Default value is first.

Value

a data frame containing a compressed format of the telemetry receiver records

Author(s)

Kevin See and Mike Ackerman


mackerman44/telemetyr documentation built on Feb. 15, 2025, 1:08 a.m.