trimData: Trim seconds off the begining or end of a run

Description Usage Arguments

View source: R/main.R

Description

Removes data from either end of a run. The value passed to trim_start will remove values from the left until the time matches trim_start. The value passed to trim_end will remove values from the right until the time matches trim_end. For instance, if my time was the vector c(1,2,3,4,5,6,7) and I passed trim_start = 2 trim_end = 5, the output would be c(2,3,4,5). Passing only trim_start = 3 would output c(3,4,5,6,7)

Usage

1
2
trimData(raw_data, time_index, trim_start = raw_data[, time_index][1],
  trim_end = raw_data[, time_index][length(raw_data)])

Arguments

raw_data

A dataframe containing the data you wish to plot.

time_index

The index of the column containing all of the 'Time' data.

trim_start

Time value to trim to, starting from the left. Default is no trimming.

trim_end

Time value to trim to, starting from the right. Default is no trimming.


allgenesconsidered/RCaMP documentation built on May 24, 2019, 3:02 a.m.