mat_cor_na | R Documentation |
Cor with NA
mat_cor_na(x, y = NULL, use = "pairwise.complete.obs", method = "pearson")
mat_cor_na_df(x, y = NULL, use = "pairwise.complete.obs", method = "pearson")
x , y , use , method |
as in cor |
iris2 <- iris[, 1:4]
iris2[c(3, 8),1] <- NA
mat_cor_na(iris2)
with(iris2, mat_cor_na(Sepal.Length, Petal.Width))
with(iris2, mat_cor_na_df(Sepal.Length, Petal.Width))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.