l*********g 发帖数: 922 | 1 For example, I have 5 numbers:
1 2 3 4 5
how to find all the permutations ? I can't find the commend in the manual.
....
Thanks a lot | s*******n 发帖数: 688 | 2 用“sample”足够次数你会cover所有permutation results
manual.
【在 l*********g 的大作中提到】 : For example, I have 5 numbers: : 1 2 3 4 5 : how to find all the permutations ? I can't find the commend in the manual. : .... : Thanks a lot
| t**i 发帖数: 688 | 3 require(e1071)
permutations(5)
You get a matrix of 120 rows and 5 columns. | l*********g 发帖数: 922 | | t**i 发帖数: 688 | |
|