diff.spikeTrain: diff method for spikeTrain objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/spikeTrain.R

Description

diff method for spikeTrain objects.

Usage

1
2
## S3 method for class 'spikeTrain'
diff(x, ...)

Arguments

x

a spikeTrain object.

...

see diff

Value

a numeric

Author(s)

Christophe Pouzat christophe.pouzat@gmail.com

See Also

diff, as.spikeTrain, is.spikeTrain

Examples

1
2
3
4
5
6
7
8
data(CAL1S)
## convert data into spikeTrain objects
CAL1S <- lapply(CAL1S,as.spikeTrain)
## look at the individual trains
## first the "raw" data
CAL1S[["neuron 1"]]
## get the isi of neuron 1
n1.isi <- diff(CAL1S[["neuron 1"]])

Example output

Loading required package: survival
Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.8-20. For overview type 'help("mgcv-package")'.
Loading required package: R2HTML
Loading required package: gss
Loading required package: codetools

STAR documentation built on May 2, 2019, 11:44 a.m.