Learn R Programming

PatientLevelPrediction (version 6.4.1)

listCartesian: Cartesian product

Description

Computes the Cartesian product of all the combinations of elements in a list

Usage

listCartesian(allList)

Value

A list with all possible combinations from the input list of lists

Arguments

allList

a list of lists

Examples

Run this code
listCartesian(list(list(1, 2), list(3, 4)))

Run the code above in your browser using DataLab