View source: R/compress_raw_data.R
compress_raw_data | R Documentation |
A wrapper function for clean_raw_data()
, round_tag_codes()
,
and compress_txt_data()
. Cleans records, rounds tag codes, and then compresses the detections,
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. compress_raw_data
is similar to the routine
Tracker uses to compress .txt format data to .csv format.
compress_raw_data(
raw_data = NULL,
min_yr = 2017,
max_yr = NA,
filter_valid = T,
round_to = 10,
timer_tag_code = "57",
noise_tag_code = "99",
max_min = 2,
assign_week = T,
week_base = "0901",
append_week = c("first", "last")
)
raw_data |
a data frame containing raw data from telemetry receivers and the Tracker software,
typically an output from |
min_yr |
the minimum acceptable year (e.g. 2017), likely the year at the start of a season. Used to filter errant dates that occur within the data pre-season. |
max_yr |
maximum acceptable year (e.g. 2018), likely the year at the end of a season. Used to filter errant dates that occur within the data post-season. |
filter_valid |
should only valid records in the |
round_to |
the integer that the user would like to round |
timer_tag_code |
the beginning of the tag code associated with timer tags. Default value is "57". |
noise_tag_code |
the beginning of the tag code associated with noise tags. Default value is "99". |
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 |
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 |
a data frame containing a compressed format of the telemetry receiver records
Kevin See and Mike Ackerman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.