Dear list,



I have a csv file like below, and I have similar 150 files (responses from
150 samples) in a folder.

I’d like to get the mean score of pairwise correlation score among 150
respondents by hour(0~20hour).

All I can think of is bring up two files and get the pairwise correlation
score and repeating this (e.g. (p1,p2),(p1,P3)…(P4,P5)..)and get the total
mean of correlation score.

However, since there’re 150 samples I can’t think of doing this manually..







Hour

Response



0

-0.11703



0.016667

-0.10427



0.033333

-0.091347



0.05

-0.078313



0.066667

-0.065226



0.083333

-0.052147



0.1

-0.039136



….

….





Can anyone please point out the best way to do? .. It’s been only a month
since I started to use R



Thank you!

	[[alternative HTML version deleted]]

