Learn R Programming

corrr (version 0.4.4)

pair_n: Number of pairwise complete cases.

Description

Compute the number of complete cases in a pairwise fashion for x (and y).

Usage

pair_n(x, y = NULL)

Value

Matrix of pairwise sample sizes (number of complete cases).

Arguments

x

a numeric vector, matrix or data frame.

y

NULL (default) or a vector, matrix or data frame with compatible dimensions to x. The default is equivalent to y = x (but more efficient).

Examples

Run this code
pair_n(mtcars)

Run the code above in your browser using DataLab