2014-04-29 Rで組み合わせ一覧を取得する R library(gtools) combinations(n=20,r=10,1:20) 参考 http://d.hatena.ne.jp/yusap/20130518/1368845756