When I need to speed up the cor(..., method="kendall")
, I found Fast correlation in R using C and parallelization. This can easily speed up the pearson
correlation calculation by cor()
in R.
But the kendall
is actually the slower one. Then the fast alternative can be cor.fk (x, y = NULL)
, which is way faster than the cor(..., method="kendall")
.