bind_signal_data: A function that combines and processes raw Logie graphics...

View source: R/bind_signal_data.R

bind_signal_dataR Documentation

A function that combines and processes raw Logie graphics data files.

Description

A function to combine and process raw Logie graphics data. Raw Logie data files are combined and errors and duplicates are removed.

Usage

bind_signal_data(path_to_folder, site, year, max_pss, print_removed = FALSE)

Arguments

path_to_folder

The file path to the folder that contains raw Logie graphics data files (.txt) to be processed.

site

Name of the study river. The site is used to name output .csv files (i.e., siteyear.csv).

year

Year of counter operation. The year is used to name output .csv files (i.e., siteyear.csv).

max_pss

The maximum peak signal size (pss).

print_removed

Defaults to FALSE. If TRUE, pss error data that were removed from the final data frame are printed to the path_to_folder as a .csv file.

Value

A list containing two elements: signal_data (cleaned master data file), and wrong_pss (data containing errors in pss that were removed from signal_data). Signal_data is written to the path_to_folder location as a .csv file. If print_removed is TRUE, wrong_pss is also returned as a .csv file. An additional file, all_signal_data.csv, is written to path_to_folder, which combines all raw graphics data contained in the data files into one master graphics file.


InStreamFisheries/FishCounter2 documentation built on Dec. 15, 2024, 9:23 p.m.