combinations: Get all patterns of diseases

Description Usage Arguments Value Examples

Description

Return combinations of different patterns of diseases to a specified number of combinations.

Usage

1
2
3
unique_combos(positions, combinations = 2)

get_combos(positions, combinations = 2)

Arguments

positions

Vector of all positions for each element of comorbid_column generated using .get_locales.

combinations

Maximum number of disease combinations to be generated (default = 2).

Value

matrix of unique combinations (if using unique_combos(), else all combinations).

Examples

1
2
positions = list(c(1,2,3,4), c(3), c(3), c(2,3))
unique_combos(positions, combinations = 2)

AJFOWLER/comorbidgroupr documentation built on May 11, 2021, 6:01 a.m.