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 spiketimes
as.repeatedTrain(x, ...)

Arguments

x

Object containing spikes to convert

...

further arguments to be passed to or from other methods.

Value

repeatedTrain object (list of numeric vectors)

See also

Examples

spikes<-CollectSpikesFromSweeps( system.file('igor','spikes','nm20110914c4',package='gphys'), subdir='BLOCKI',sweeps=0:4) rt=as.repeatedTrain(spikes) rt
#> $ctr
#> #> $fly
#> #> $`4ol`
#> #> $cVA
#> #> $IAA
#> #> $PAA
#>
require(STAR) psth(rt[['PAA']])