Learn R Programming

elaborator (version 1.3.5)

elaborator_calculate_ref_pattern: Returns row of a matrix containing all combinations of elements 0 and 1 of a pre-specified length

Description

This function is mostly useful for generating the reference-value based pattern analysis plots. It returns the (i-1)-th row of a matrix containing all combinations of elements 0 and 1 of a pre-specified length.

Usage

elaborator_calculate_ref_pattern(index, number_combinations)

Value

A numeric vector containing a specific combination of elements 0 and 1; this combination is used to calculate pattern for reference-value based pattern analysis plot.

Arguments

index

selected row -1 of the combination matrix which shall be returned

number_combinations

length of the combination vector