R/tam_normalize_matrix_rows.R

Defines functions tam_normalize_matrix_rows

Documented in tam_normalize_matrix_rows

## File Name: tam_normalize_matrix_rows.R
## File Version: 0.02

# normalizing rows in a matrix
# such that each row sums to one
tam_normalize_matrix_rows <- function(x)
{
    x <- x / rowSums( x )
    return(x)
}

Try the TAM package in your browser

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

TAM documentation built on Aug. 29, 2022, 1:05 a.m.