R/weighted_colSums.R

Defines functions weighted_colSums

## File Name: weighted_colSums.R
## File Version: 0.08


weighted_colSums <- function( mat, wgt=NULL)
{
    wgt <- weighted_stats_extend_wgt( wgt=wgt, mat=mat )
    mat1 <- colSums( mat * wgt, na.rm=TRUE)
    return(mat1)
}
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.