rv: rv coefficient

View source: R/utils.R

rvR 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

laurenhsu1/corral documentation built on Feb. 19, 2023, 10:37 p.m.