| PTTrack-method | R Documentation |
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 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.
When x is of class PTPattern, or
PTModule, the PTTrack at the specified indices
(track and pattern) is returned, or can be replaced.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.