Re: [R] Repetitive correlation test

2008-10-25 Thread Amarjit Singh Sethi
& x2 is as: cor=cor.test(x1,x2,alternative = "two.sided", method = "pearson") That is, the variables essentially need be separated by a comma. So please help. --- On Sat, 25/10/08, Patrick Burns <[EMAIL PROTECTED]> wrote: > From: Patrick Burns <[EMAIL PROTE

[R] Repetitive correlation test

2008-10-24 Thread Amarjit Singh Sethi
Dear all, Through the following code, I wanted to perform correlation test repetedly (through loop) on different combinations of variables of a data set. Code: x=read.table("sample.txt",header=T,sep="\t") out="corout.txt" sink(out) nm = names(x) print(nm) nvr=3 # nvr=Total no. of variables in th