This function computes the weighted mean for each column in an input matrix. See the Details section below for further information.
Arguments
- x
a numerical matrix features-by-samples
- w
numerical vector of weights. Its length must match the number of rows in
x- rows
(optional) numerical vector giving the rows in
xor character vector matching the row names inxto operate over. Ifmissingorrows = NULL, all the rows inxare considered for the computation of the measures- na.rm
logical, whether to remove
NAvalues fromxbefore computation- ...
further arguments to
colWeightedMeans
Details
It is a wrapper to colWeightedMeans
function.