Correlation test for multiple variables - of the same name - in separate data.frames

Share:

Description

Correlation test for multiple variables - of the same name - in separate data.frames

Usage

1
cor.testm(data1, data2, method)

Arguments

data1

a data.frame with N variables

data2

a data.frame with the same N variables as data1

method

a correlation method, either method = "pearson" or "spearman"

Value

Returns a data.frame of correlation test data for N variables

See Also

cor.test is the underlying function and has more options