R/weighted_rowSums.R

Defines functions weighted_rowSums

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


weighted_rowSums <- function( mat, wgt=NULL)
{
    wgt <- weighted_stats_extend_wgt( wgt=wgt, mat=mat )
    mat1 <- rowSums( mat * wgt, na.rm=TRUE)
    return(mat1)
}

Try the sirt package in your browser

Any scripts or data that you put into this service are public.

sirt documentation built on Aug. 11, 2023, 5:07 p.m.