as.repeatedTrain | R Documentation |
The STAR (Spike Train Analysis with R) package has a large number of useful functions for e.g. PSTH analysis. Note that the spiketimes objects are a list of data frames, where each list element will correspond to one pxp file and will have trials for different odours. We now want to turn this into a list of repeatedTrain objects, one for each odour.
as.repeatedTrain(x, ...)
## S3 method for class 'spiketimes'
as.repeatedTrain(x, ...)
x |
Object containing spikes to convert |
... |
further arguments to be passed to or from other methods. |
repeatedTrain object (list of numeric vectors)
as.repeatedTrain
spikes<-CollectSpikesFromSweeps(
system.file('igor','spikes','nm20110914c4',package='gphys'),
subdir='BLOCKI',sweeps=0:4)
rt=as.repeatedTrain(spikes)
rt
require(STAR)
psth(rt[['PAA']])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.