Skip to content
Prev 286257 / 398502 Next

cor() on sets of vectors

Use 1:n as an index.

e.g.
sapply(1:n, function(i) cor(x[,i],y[,i]))

-- Bert
On Thu, Feb 23, 2012 at 2:10 PM, Sam Steingold <sds at gnu.org> wrote: