[R] pearson correlation matrix
lists at dewey.myzen.co.uk
Fri Feb 5 19:36:49 CET 2016
On 05/02/2016 17:10, emmanuelle morin wrote:
> ok, it will still make sense ?
Whether it makes sense to correlate the people rather than the variables
depends on the underlying science which (a) we do not know, and (b) is
not really an R question.
> Le 05/02/2016 15:31, Michael Dewey a écrit :
>> Assuming your dataset is in a matrix you want to transpose it. So you
>> can go t(mesdonnees) and then call cor on that.
>> On 05/02/2016 14:06, emmanuelle morin wrote:
>>> I have a set of 12 individuals with thousands of variables measured.
>>> I understand that when I'm using the cor() function on my matrix I'm
>>> calculating the correlation between the different variables according to
>>> their values for the different individuals.
>>> What I'm willing to do is to calculate a correlation between the
>>> individuals and I have no clue how I can do that.
>>> Could you please help me ?
More information about the R-help