Coerce to or replace PTTrack
This method will coerce a set of objects to a PTTrack
object. It can also
be used to select specific tracks from PTModule
and
PTPattern
objects and replace the selected PTTrack
.
## S4 method for signature 'raw,missing,missing' PTTrack(x) ## S4 method for signature 'matrix,missing,missing' PTTrack(x) ## S4 method for signature 'character,missing,missing' PTTrack(x) ## S4 method for signature 'PTModule,numeric,numeric' PTTrack(x, track, pattern) ## S4 replacement method for signature 'PTModule,numeric,numeric,PTTrack' PTTrack(x, track, pattern) <- value ## S4 method for signature 'PTPattern,numeric,missing' PTTrack(x, track) ## S4 replacement method for signature 'PTPattern,numeric,missing,PTTrack' PTTrack(x, track) <- value
x |
Object (any of |
track |
When |
pattern |
When |
value |
An object of |
Method to coerce x
to class PTTrack
.
When x
is a 64 by 4 matrix
of raw
data, each row
implicitly represents a PTCell
object and should
be formatted accordingly. See PTCell-class
documentation for
more details.
When x
is a 64 element vector
of character
representation
of PTCell
objects, the character
representation must be
conform the specifications as documented at the PTCell-class
.
When PTTrack
is used, a PTTrack
object
based on x
is returned.
When PTTrack<-
is used, object x
is returned in which
the selected PTTrack
is replaced with value
.
Pepijn de Vries
Other track.operations:
as.character()
## This will create an 'empty' PTTrack with all nul ## values, which is equivalent to new("PTTrack"): PTTrack(as.raw(0x00)) ## This will generate a PTTrack from a repeated ## character representation of a PTCell: chan <- PTTrack(rep("C-3 01 C20", 64)) data("mod.intro") ## This will replace the PTTrack at pattern ## number 1, track number 2 of mod.intro with chan: PTTrack(mod.intro, 2, 1) <- chan
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.