rv {corral}R Documentation

rv coefficient

Description

rv coefficient

Usage

rv(mat1, mat2)

Arguments

mat1

matrix (or matrix-like, e.g., df); either columns or rows should be matched with mat2

mat2

matrix (or matrix-like, e.g., df); either columns or rows should be matched with mat1

Value

numeric; RV coefficient between the matched matrices

Examples

a <- matrix(sample(1:10,100, TRUE), nrow = 10)
b <- matrix(sample(1:10,50, TRUE), nrow = 5)

rv(a, b) # matched by columns
rv(t(a), t(b)) # matched by rows

[Package corral version 1.4.0 Index]