mat_cor_na: Cor with NA

View source: R/utilities.R

mat_cor_naR Documentation

Cor with NA

Description

Cor with NA

Usage

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")

Arguments

x, y, use, method

as in cor

Examples

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))

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.