ss_runsetter: A narrow function to read through an appended dataset and...

View source: R/ss_runsetter.R

ss_runsetterR Documentation

A narrow function to read through an appended dataset and attempt to automatically split it up.

Description

Use on appended data files where multiple measurements are made in one file. Will create an "ID" column for each individual measurement, as determined by threshhold. When the difference in the chosen column is greater than the provided threshhold it will decide that it is a new measurement.

Usage

ss_runsetter(df, threshhold = 2, aslist = FALSE, column = "Time")

Arguments

df

The data table (singular) to analyze

threshhold

The difference in the chosen column that is to be considered a new measurement.

aslist

When FALSE, returns a dataframe with an ID column that distinguishes separate measurements. When TRUE, returns the same but divided into a list, with one element per measurement.

column

The chosen column to study for differences in threshhold. Defaults to "Time," used by me to differentiate different measurements taken in the same folder but separated by time.


poales/sharkeySpec documentation built on July 22, 2022, 10:28 a.m.