Learn R Programming

ojUtils (version 0.1.0)

combn_C: combn replacement

Description

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

Usage

combn_C(x)

Arguments

x

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

Examples

Run this code
# NOT RUN {
x = 1:4
all(combn(x,2)==combn_C(x))

# }

Run the code above in your browser using DataLab