Learn R Programming

STAR (version 0.3-7)

print.spikeTrain: Print and Summary Methods for spikeTrain Objects

Description

Print and summary methods for spikeTrain objects.

Usage

"print"(x,...) "summary"(object, timeUnit = "s", digits = 3, ...)

Arguments

x, object
A spikeTrain object.
timeUnit
The unit with which the occurrence times were measured.
digits
The number of digits used to print the summary (see round).
...
see print and summary.

Value

print.spikeTrain generates a plot as a side effect.summary.spikeTrain returns the number of spikes, the times of the first and last spikes, the mean inter-spike interval (ISI) and its sd as well as the mean and sd of the log(ISI) together with the shortest and longest ISIs.

Details

print.spikeTrain does in fact call the plot method for spikeTrain objects.

See Also

as.spikeTrain, is.spikeTrain, renewalTestPlot, varianceTime, stepfun

Examples

Run this code
## load spontaneous data of 4 putative projection neurons
## simultaneously recorded from the cockroach (Periplaneta
## americana) antennal lobe
data(CAL1S)
## convert data into spikeTrain objects
CAL1S <- lapply(CAL1S,as.spikeTrain)
## look at the individual trains
## first the "raw" data
CAL1S[["neuron 1"]]
## next some summary information
summary(CAL1S[["neuron 1"]])

Run the code above in your browser using DataLab