HenrikBengtsson / matrixStats

R package: Methods that Apply to Rows and Columns of Matrices (and to Vectors)
https://cran.r-project.org/package=matrixStats
206 stars 34 forks source link

Extend rowWeightedVars() to handle a matrix of weights #245

Open GabrielHoffman opened 11 months ago

GabrielHoffman commented 11 months ago

rowWeightedVars(X,w) currently handles a matrix X, the weights w must be a vector. Is it possible to extend this function handle a weights matrix W the same dimension as X?