divide: Divide spiketimes object with multiple repeats into list with...

Description Usage Arguments Details Value Author(s) See Also

Description

divide.spiketimes is designed for the situation where a single pxp file contains multiple repeats for the same stimulus set.

Usage

1
2
3
4
divide(x, ...)

## S3 method for class 'spiketimes'
divide(x, blocksize, ...)

Arguments

x

The spiketimes object

...

Additional arguments (currently ignored)

blocksize

number of waves per block - deduced from odour names if missing

Details

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.

Value

new spiketimes object (list) with one entry for each block of odours

Author(s)

jefferis

See Also

Other spiketimes: +.spiketimes, [.spiketimes, is.spiketimes, merge.spiketimes, spiketimes, split.spiketimes, subset.spiketimes


jefferis/gphys documentation built on June 5, 2019, 9:45 p.m.