pr_clean_data: Clean the raw data from the readers

View source: R/pr_clean_data.R

pr_clean_dataR Documentation

Clean the raw data from the readers

Description

The function does the following

  • Keeps columns of interest (i.e. id, antenna, time)

  • Posixt format for time

  • Keep one read per individual at a certain antenna per second

  • Remove ghost reads

  • Orders the data frame based on time

Usage

pr_clean_data(raw_df, block_ref_df)

Arguments

raw_df

Raw data frame from the PIT / RFID system, already formatted and containing the columns "time", "date", "antenna", "id" (already formatted). This data frame corresponds to the reads for one experimental block.

block_ref_df

Reference data frame for an experimental block containing at least one column "id", with all individuals and corresponding variables (already formatted)

Value

A data frame (block_df), with three columns (i.e. id, antenna, time), and the number of rows corresponding to the total number of reads (except duplicates within a second) of a experimental block.


AparajithaRamesh/pondr documentation built on Sept. 14, 2023, 7:14 p.m.