Displaying 2 results from an estimated 2 matches for "permsn".
Did you mean:
perms
2008 Jun 04
1
permsn incorrect when x==m (library: prob) (PR#11571)
Full_Name: Obnoxious
Version: 2.7.0
OS: Windows
Submission from: (NULL) (121.223.77.238)
Objective:
Generate all permutations of the elements of x taken m at a time.
Library:
prob
Function:
permsn
Issue:
Does not appear to be working correctly when x==m.
Example:
libary(prob)
permsn(2,1) i.e., x > m
#Gives the correct result of
[,1] [,2]
[1,] 1 2
#Yet
permsn(2,2) i.e., x==m
#Gives the incorrect? result of
[1] 1 2
#Shouldn't the result be
[,1] [,2]???
[1] 1 2?...
2008 Apr 06
3
Multiset Permutations
Dear R users,
I want to perform an exact permutation of multisets. I have looked at the
coin package, but it doesn't seem to offer what I am looking for. I want to
perform permutations (exact - without duplications) on multisets of scalars
(e.g., the multiset 0,0,1,2,2). I want to output all the possible
permutations into a data frame so that each multiset permutation occupies a
row (or