sim.cut: Cut signal along time axis

Description Usage Arguments Value See Also

View source: R/perturbations.R

Description

Cut out selected values of a simulated signal.

Usage

1
sim.cut(baseline, range, range_by_time = TRUE, reindex = FALSE)

Arguments

baseline

baseline, as generated by function sim.baseline, possibly perturbed by other functions.

range

indices of affected values. Either a start and end index or the whole range. If length of range is 2 and second value is infinity, the second value is converted to highest possible value. If range is NULL, maximum range (1 to max) is taken.

range_by_time

Boolean, indicates whether values in range correspond to value of time of signal, rather than row indices. This is recommended, since time values for fluorescence signals with non-uniform flow rate are also not uniform.

reindex

Boolean, indicates whether time values should be re-indexed to 1..N after cutting.

Value

Modified baseline input.

See Also

See functions beginning with sim.sample. for examples of usage.


davnovak/qctoy documentation built on Nov. 4, 2019, 9:45 a.m.