Fast Spearman correlation matrix

I want to calculate Spearman correlation matrices with some large datasets. I have been trying with the base R implementation cor(method="spearman"). It works well, but it is a bit slow for my purpose.

I have tried also with corrr::correlate(method="spearman"). It provided a similar performance.

Is there any other implementation of the Spearman correlation matrix in R which is faster than these methods?

Thanks in advance for any suggestion!

I realized that it was slow because I was using the option cor(use="pairwise.complete.obs"). It is much slower than the default use="everything".

With the default option it is very fast.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.