Skip to contents

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

Usage

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

Arguments

x

A correlations

na.rm

logical (defaults to TRUE)

Value

A numeric vector of correlation means.

Examples

  # Use the SCWB data example
  data(SCWB)
  mycor <- cor(SCWB)
  cor.rowMeans(mycor)
#>       cwbcloserel        cwbrespect          cwbtrust      cwbmutuality 
#>               NaN               NaN               NaN               NaN 
#>    cwbbeneficence      cwbintegrity     cwbcompetence         cwbvision 
#>               NaN               NaN               NaN               NaN 
#>      cwbrelgrowth       cwbfairness     cwbsustenance        cwbachieve 
#>               NaN               NaN               NaN               NaN 
#>         cwbsatisf          cwbvalue      cwbbelonging        cwbwelcome 
#>               NaN               NaN               NaN               NaN 
#>        cwbpurpose        cwbcontrib      cwbinterconn        cwbsynergy 
#>               NaN               NaN               NaN               NaN 
#>     total_goodrel     total_prolead total_healthyprac     total_satcomm 
#>         0.6599330         0.6719363         0.7062158         0.7036671 
#>  total_strongmiss 
#>         0.6313508