remove_trend: Remove Linear trends

Description Usage Arguments Value Examples

View source: R/Analyse_real_data.R

Description

Remove Linear trends

Usage

1
remove_trend(ISI, rm.end.time = TRUE)

Arguments

ISI

The ISI times

rm.end.time

Flag for whether we need to remove the last entry (end.time) of the ISI times.

Value

ISI.times with linear trend removed.

Examples

1
2
3
4
ISI <- c(1,3,2,4,1,5)
ISI.no <- 1:6
remove_trend(ISI, rm.end.time=FALSE)
stats::lm(ISI.no ~ remove_trend(ISI, rm.end.time=FALSE)) # Show the linear trend has been removed.

JPNotts/Package documentation built on Oct. 5, 2021, 2:04 p.m.