Displaying 1 result from an estimated 1 matches for "7cbd77351d05ca4ffd998308dce4728e54".
2024 Oct 04
1
apply
It's still hard to figure out what you want. If you have two vectors
you can compute their (2x2) covariance matrix using cov(cbind(x,y)).
If you want to compute all pairwise squared differences between elements
of x and y you could use outer(x, y, "-")^2.
Can you explain a little bit more about (1) the context for your
question and (2) why you want/need to use apply() ?
On