2013-06-04 7 views

答えて

12
matrix(sample.int(15, size = 9*100, replace = TRUE), nrow = 9, ncol = 100) 

以上の簡潔なバージョン

matrix(sample.int(15, 9*100, TRUE), 9, 100) 

が、あなたは本当に最小限の数のために行くされている場合文字の(私はお勧めしません):

matrix(sample(15,900,T),9) 
関連する問題