HenrikBengtsson / matrixStats

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

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

Open GabrielHoffman opened 10 months ago

GabrielHoffman commented 10 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?