sspv: Subsets Pseudo-Vector Constructor

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/trotter.R

Description

The SSPV class defines a pseudo-vector containing all the arranged subsets of the objects stored in items. The function sspv is a constructor for this class.

Usage

1
sspv(items)

Arguments

items

a vector of objects to be subsetted.

Details

The subsets are arranged according to the order in which the objects appear in items. The first subset, containing none of the objects, is NULL.

Value

an instance of SSPV.

Author(s)

Richard Ambler

See Also

Permutations Pseudo-Vector ppv

Combinations Pseudo-Vector cpv

Amalgams Pseudo-Vector apv

Selections Pseudo-Vector spv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# create a pseudo-vector of subsets from the first 15 letters
ss <- sspv(letters[1:15])
# generate a description
print(ss)
# compatable with length
length(ss)
# inspect a few of the combinations "stored" in ss
ss[1]
ss[1000]
ss[32768]

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

Related to sspv in trotter...