divide.Rd
divide.spiketimes is designed for the situation where a single pxp file contains multiple repeats for the same stimulus set.
divide(x, ...) # S3 method for spiketimes divide(x, blocksize, ...)
x | The spiketimes object |
---|---|
... | Additional arguments (currently ignored) |
blocksize | number of waves per block - deduced from odour names if missing |
new spiketimes object (list) with one entry for each block of odours
Only works for spiketimes from single pxp file.
The function can cope with cases where odour order has been shuffled within repeated blocks each containing all test odours (but not when the odours could appear at any point in the test sequence).
For shuffled data the Wave column will be a number from 0 to blocksize-1 that indicates which of the presented channels the spikes belong to. Note that this is sorted by absolute channel number not by the order of presentation of odours in the first block.
Likwise the oddconf
of the returned list of data.frames will have
the odours sorted in absolute channel order.
Other spiketimes: +.spiketimes
,
[.spiketimes
, is.spiketimes
,
merge.spiketimes
, spiketimes
,
split.spiketimes
,
subset.spiketimes