Set or extract weighted matrix row weights
rowweights(x, ...)# S3 method for linwmatrix
rowweights(x, ...)
# S3 method for logwmatrix
rowweights(x, ...)
lrowweights(x, ...)
# S3 method for logwmatrix
lrowweights(x, ...)
# S3 method for linwmatrix
lrowweights(x, ...)
rowweights(x, ...) <- value
# S3 method for linwmatrix
rowweights(x, update = TRUE, ...) <- value
# S3 method for logwmatrix
rowweights(x, update = TRUE, ...) <- value
lrowweights(x, ...) <- value
# S3 method for linwmatrix
lrowweights(x, update = TRUE, ...) <- value
# S3 method for logwmatrix
lrowweights(x, update = TRUE, ...) <- value
# S3 method for matrix
rowweights(x, ...) <- value
# S3 method for matrix
lrowweights(x, ...) <- value
For the accessor functions, the row weights or the row log-weights; otherwise, a weighted matrix with modified weights. The type of weight (linear or logarithmic) is converted to the required type and the type of weighting of the matrix is preserved.
a linwmatrix
, a logwmatrix
, or a matrix
; a
matrix
is coerced to a weighted matrix of an appropriate
type.
extra arguments for methods.
weights to set, on the appropriate scale.
if TRUE
(the default), the old weights are updated
with the new weights (i.e., corresponding weights are multiplied
on linear scale or added on on log scale); otherwise, they are
overwritten.