Swapnil 'Tux' Takle - 1 year ago 82

R Question

I have 92 set of data of same type.

I want to make a correlation matrix for any two combination possible.

i.e. I want a matrix of 92 x92.

such that element (ci,cj) should be correlation between ci and cj.

How do I do that?

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Answer Source

An example,

```
d <- data.frame(x1=rnorm(10),
x2=rnorm(10),
x3=rnorm(10))
cor(d) # get correlations (returns matrix)
```

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**