sub-SPV-method: Retrieve a Selection by Index

Description Usage Arguments Details Value See Also

Description

Access a selection (combination with replacement) stored in an SPV instance by index.

Usage

1
2
## S4 method for signature 'SPV'
x[i, j, drop]

Arguments

x

an instance of SPV.

i

an index specifying the position of the sought selection.

j

not used.

drop

not used.

Details

The selection 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.

Value

the selection located at position i in pseudo-vector x

See Also

Permutations Pseudo-Vector ppv

Combinations Pseudo-Vector cpv

Amalgams Pseudo-Vector apv

Subsets Pseudo-Vector sspv


trotter documentation built on May 2, 2019, 1:27 p.m.