combn_C: combn replacement

Description Usage Arguments Examples

View source: R/ifelseR.R

Description

This function is an adaptation of combn from base. currently the options are limited, and implying a value of m = 2.

Usage

1

Arguments

x

is an integer vector, representing a sequence starting at 1.

Examples

1
2
x = 1:4
all(combn(x,2)==combn_C(x))

ojUtils documentation built on Sept. 21, 2018, 6:25 p.m.