NB the sweeps will be in the specified odour/channel order. If an unnamed second parameter is specified it will be interpreted as vector of odours if it is a character or channel ids if it is numeric.

# S3 method for spiketimes
subset(x, odours = NULL, channels = NULL, ...)

Arguments

x

The original spiketimes object

odours

A character vector of odours

channels

Integer vector of channels

...

further arguments to be passed to or from other methods (currently ignored)

Value

spiketimes object restricted to specified odours or channels

Details

If an odour name is duplicated in the oddconfig (e.g. ctr or oil, often) then a warning will be given and the first matching sweep(s) will be used.

See also