Description Usage Arguments Value See Also Examples
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.
1 2 3 4 | 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)
1 2 3 4 5 6 7 | 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.