Learn R Programming

trotter (version 0.6)

[,CPV-method: Retrieve a Combination by Index

Description

Access a combination stored in a CPV instance by index.

Usage

"["(x, i, j, drop)

Arguments

x
an instance of CPV.
i
an index specifying the position of the sought combination.
j
not used.
drop
not used.

Value

the combination located at position i in pseudo-vector x

Details

The combination at index i of pseudo-vector x is not actually stored in memory but calculated as needed. The extract method is used solely for interpretation.

See Also

Permutations Pseudo-Vector ppv

Amalgams Pseudo-Vector apv

Selections Pseudo-Vector spv

Subsets Pseudo-Vector sspv