SPVclass defines a pseudo-vector containing all the arranged
k-selections (combinations with replacement) of the objects stored in
items. The function
spvis a constructor for this class.
items. The arrangement is very similar to the arrangement of combinations (see cpv) except that objects may be repeatedly selected.
# create a pseudo-vector of 10-selections from the first 15 letters s <- spv(10, letters[1:15]) # generate a description print(s) # compatable with length length(s) # inspect a few of the combinations "stored" in s s s s