cor.matrix {Deducer} R Documentation

## cor.matrix

### Description

Creates a correlation matrix

### Usage

cor.matrix(variables,with.variables,data=NULL,test=cor.test,...)

### Arguments

 variables variables with.variables An optional set of variables to correlate with variables. If nothing is specified, all variables in variables are correlated with themselves. data A data.frame from which the variables and factor will be selected. test A function whose first two arguments are the variables upon which the correlation will be calculated, and whose result is an object of class htest. ... further arguments for test.

### Value

A multi.test object, representing a table of the results of func applied to each of the variables.

dat$aa<-dat$aa+dat$dd dat$cc<-dat$cc+dat$aa