Extract or replace a sample number
## S4 method for signature 'PTCell' sampleNumber(x) ## S4 replacement method for signature 'PTCell,numeric' sampleNumber(x) <- value
x |
A |
value |
A |
For sampleNumber
, a numeric
value representing the
sample index number of object x
is returned.
For sampleNumber<-
, an copy of object x
is returned in which
the sample index number is replaced with value
.
Pepijn de Vries
Other cell.operations:
PTCell-class
,
PTCell-method
,
effect()
,
note()
data("mod.intro") ## get the sample index number of PTCell at pattern #3, ## track #2, row #1 from mod.intro (which is 2): sampleNumber(PTCell(mod.intro, 1, 2, 3)) ## replace the sample index number of PTCell at pattern #3, ## track #2, row #1 from mod.intro with 1: sampleNumber(PTCell(mod.intro, 1, 2, 3)) <- 1
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.