round_tag_codes: Round Tag Codes

View source: R/round_tag_codes.R

round_tag_codesR Documentation

Round Tag Codes

Description

Round the tag IDs from a receiver to the nearest 5 or 0 to better match possible tag codes

Usage

round_tag_codes(
  data_df = NULL,
  round_to = 5,
  timer_tag_code = "57",
  noise_tag_code = "99"
)

Arguments

data_df

any data frame with a column named tag_code

round_to

the integer that the user would like to round tag_code to. Currently supports either 5 or 10. If round_to = 5, will round to the nearest 5. If round_to = 10, will round to the nearest 0.

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".

Value

a data frame containing all the original columns, plus an additional column tag_id containing the fixed tag IDs

Author(s)

Kevin See and Mike Ackerman


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