Weighted correlations
wcor(d1, d2, w = rep(1, nrow(d1))/nrow(d1))
d1
d2
w
Weighted correlation
Jose Luis Vicente Villardon
Useful links