Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/repeatedTrain.R
Print and summary methods
for repeatedTrain
objects.
1 2 3 4 5 6 7 
x 
a 
object 
a 
responseWindow 
a 2 elements vector specifying the begining and the end of the neuron response. 
acquisitionWindow 
a 2 elements vector specifying the begining and
the end of the acquisition. If 
... 
additional arguments passed to function

print.repeatedTrain
calls plot.repeatedTrain
summary.repeatedTrain
returns a LIST of class
summary.repeatedTrain
with the following components:
nbRepeates 
The number of repetitions. 
acquisitionWindow 
The acquisition window. 
stats 
A matrix with as many rows as repetitions. The first
column contains the total number of spikes generated by the neuron
during a given repeat (this column appears under the heading "nb"
when the object is printed). The second column contains the corresponding
average discharge rate (this column appears under the heading "nu"
when the object is printed). If a 
globalPval 
The p value of the chi square test for homogeneity of the total number of spikes generated accross repetitions. Thats a rough stationarity test. 
responsePval 
If a 
Christophe Pouzat christophe.pouzat@gmail.com
as.repeatedTrain
,
is.repeatedTrain
,
plot.repeatedTrain
,
raster
,
psth
1 2 3 4 5 6 7 8 9 10 11 12 13 14  ## Load the Vanillin responses of the first
## cockroach data set
data(CAL1V)
## convert them into repeatedTrain objects
## The stimulus command is on between 4.49 s and 4.99s
CAL1V < lapply(CAL1V,as.repeatedTrain)
## Generate raster plot for the neurons
raster(CAL1V[["neuron 1"]],c(4.49,4.99))
plot(CAL1V[["neuron 2"]],c(4.49,4.99))
plot(CAL1V[["neuron 3"]],c(4.49,4.99))
## Basic summary of neuron 1
summary(CAL1V[["neuron 1"]])
## Enhanced summary giving a response window between 5 and 5.5s
summary(CAL1V[["neuron 1"]],c(5,5.5))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.