Learn R Programming

baizer (version 0.8.0)

gen_combn: generate all combinations

Description

generate all combinations

Usage

gen_combn(x, n = 2)

Value

all combinations

Arguments

x

vector

n

numbers of element to combine

Examples

Run this code
gen_combn(1:4, n = 2)

Run the code above in your browser using DataLab