subset.spiketimes: Subset spiketimes object to contain only sweeps for an odour...

Description Usage Arguments Details Value Author(s) See Also

Description

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.

Usage

1
2
## S3 method for class '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)

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.

Value

spiketimes object restricted to specified odours or channels

Author(s)

jefferis

See Also

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


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