rv: rv coefficient

Description Usage Arguments Value Examples

View source: R/utils.R

Description

rv coefficient

Usage

1
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

1
2
3
4
5
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

corral documentation built on Nov. 8, 2020, 8:25 p.m.