setWeights {beadarray} | R Documentation |
Replaces the weights of a BeadLevelList with user-specified ones.
setWeights(BLData, wts, array, combine=FALSE)
BLData |
BeadLevelList |
wts |
either a numerical vector of weights to use, or 0 or 1 to set all weights to 0 or 1. |
array |
integer specifying the strip/array to use |
combine |
logical. If TRUE , the new weights specified by wts are combined
with the existing weights by storing the minimum of the two for each
bead. If FALSE the new weights replace any existing weights. |
This function replaces the weights column, wts
, on the specified array, with user-specified values.
Only rows with wts != 1
are used in createBeadSummaryData
.
BeadLevelList
object, with updated wts
values.
Mark Dunning
data(BLData) BLData <- setWeights(BLData,1,1) ##set all weights to 1 BLData <- setWeights(BLData,0,1) ##set all weights to 0