R/rowProds2.R

Defines functions rowProds2

## File Name: rowProds2.R
## File Version: 1.02

#************************************************************************
rowProds2 <- function(matr)
{
    y <- matr[,1]
    for (ii in 2:dim(matr)[2]){
        y <- y * matr[,ii]
    }
    return(y)
}
#...................................................................

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.