mat_cor_na: Cor with NA

Description Usage Arguments Examples

View source: R/utilities.R

Description

Cor with NA

Usage

1
2
3
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

1
2
3
4
5
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 Aug. 10, 2021, 11:01 a.m.