Learn R Programming

trotter (version 0.6)

length,PPV-method: Permutations Pseudo-Vector Length

Description

Get the length of a PPV instance.

Usage

"length"(x)

Arguments

x
an instance of PPV

Value

the number of permutations in pseudo-vector x

Details

Since x contains all the k-permutations of objects in vector items, length(x) will return choose(length(items), k) * factorial(k).

See Also

Combinations Pseudo-Vector cpv

Amalgams Pseudo-Vector apv

Selections Pseudo-Vector spv

Subsets Pseudo-Vector sspv