It obtains the coefficients of correlation between two groups of variables,
along with p-value, by means of the methods of Pearson, Spearman or Kendall.
By default it is Pearson. Results similar to the SAS
library(agricolae)
data(soil)
# correlation between pH, variable 2 and other elements from soil.correlation<-cor.mv(soil[,2],soil[,c(-1,-2)],method="pearson")
correlation