Learn R Programming

tuneR (version 1.4.7)

channel: Channel conversion for Wave objects

Description

Convenient wrapper to extract one or more channels (or mirror channels) from an object of class Wave.

Usage

channel(object, which = c("both", "left", "right", "mirror"))

Value

Wave object including channels specified by which.

Arguments

object

Object of class Wave.

which

Character indicating which channel(s) should be returned.

Details

For objects of WaveMC-class, channel selection can be performed by simple matrix indexing, e.g. WaveMCobject[,2] selects the second channel.

See Also

Wave, Wave-class, mono, extractWave