Learn R Programming

STAR (version 0.3-7)

diff.spikeTrain: diff method for spikeTrain objects

Description

diff method for spikeTrain objects.

Usage

"diff"(x, ...)

Arguments

x
a spikeTrain object.
...
see diff

Value

a numeric

See Also

diff, as.spikeTrain, is.spikeTrain

Examples

Run this code
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"]])

Run the code above in your browser using DataLab