make_pairs: Make pairs

View source: R/check_data.R

make_pairsR Documentation

Make pairs

Description

Take a character with the names of the longitudinal outcome variables and make all unique pairs

Usage

make_pairs(outcomes)

Arguments

outcomes

a character vector with the names of longitudinal outcomes

Value

a matrix of length(outomes)*(length(outcomes)-1)/2 rows and 2 columns with all unique pairs.

Examples

pairs <- make_pairs(outcomes = c("y1", "y2", "y3", "y4"))

JanvandenBrand/jmmm documentation built on May 30, 2022, 9:37 a.m.