rowMeans {psichomics} | R Documentation

## Calculate mean for each row of a matrix

### Description

Calculate mean for each row of a matrix

### Usage

    rowMeans(mat, na.rm = FALSE)

### Arguments

`mat` | Matrix
`na.rm` | Boolean: remove NAs?

### Value

Vector of means

### Examples

    df <- rbind("Gene 1"=c(3, 5, 7), "Gene 2"=c(8, 2, 4), "Gene 3"=c(9:11))
    rowMeans(df)

[Package psichomics version 1.6.2 Index]