length-SPV-method: Selections Pseudo-Vector Length

Description Usage Arguments Details Value See Also

Description

Get the length of an SPV instance.

Usage

1
2
## S4 method for signature 'SPV'
length(x)

Arguments

x

an instance of SPV

Details

Since x contains all the k-selections of objects in vector items, length(x) will return choose(length(items) + k - 1, k).

Value

the number of selections (combinations with replacement) 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.