clean_raw_data: Clean Raw Telemetry Data

View source: R/clean_raw_data.R

clean_raw_dataR Documentation

Clean Raw Telemetry Data

Description

Perform initial cleaning of the raw telemetry data, typically an output from read_txt_data() including formatting and filtering dates and the option to delete invalid observations.

Usage

clean_raw_data(raw_data = NULL, min_yr = 2017, max_yr = NA, filter_valid = T)

Arguments

raw_data

a data frame containing raw data from telemetry receivers and the Tracker software, typically an output from read_txt_data()

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 raw_data be returned? Default is TRUE which only returns records where valid == 1. This uses the 4th column in the raw Tracker software .txt downloads.

Value

a data frame similar to raw_data except cleaner

Author(s)

Kevin See and Mike Ackerman


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