I want to calculate the correlation between variables which aren't normally distributed, so I am trying to use Spearman. There are some missing values and I don't know how to handle them.
cor function documentation in R says:
"In the case of missing values, the ranks are calculated depending on the value of use, either based on complete observations, or based on pairwise completeness with reranking for each pair."
It also says:
"For cov and var, "pairwise.complete.obs" only works with the "pearson" method."
So how do I set "or based on pairwise completeness with reranking for each pair" as a criteria for "use"?
cor(df, method="spearman", use=WHAT?)