Learn R Programming

recmetrics (version 0.1.0)

cor.rowMeans: Compute rowMeans of a correlation matrix

Description

A wrapper for computing the mean of the rows of a correlation matrix.

Usage

cor.rowMeans(x, na.rm = TRUE)

Value

A numeric vector of correlation means.

Arguments

x

A correlations

na.rm

logical (defaults to TRUE)

Examples

Run this code
  # Use the SCWB data example
  data(SCWB)
  mycor <- cor(SCWB)
  cor.rowMeans(mycor)

Run the code above in your browser using DataLab