Drop-in replacement for cor() that defaults to
use = "pairwise.complete.obs".
Usage
cor(
x,
y = NULL,
use = "pairwise.complete.obs",
method = c("pearson", "kendall", "spearman"),
...
)Arguments
- x
A numeric vector, matrix, or data frame.
- y
Optional. A numeric vector, matrix, or data frame.
- use
Method for handling missing values. Default
"pairwise.complete.obs".- method
Correlation method: "pearson", "kendall", or "spearman".
- ...
Additional arguments passed to
stats::cor().