看板 Statistics 關於我們 聯絡資訊
請問我想亂數產生100個整數(範圍0~100) 並排序 這樣的指令是什麼 謝謝~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.127.226.113 ※ 編輯: wulingking 來自: 140.127.226.113 (03/05 15:21)
mangogogo:sort(runif(100,0,100)) 03/05 15:28
mangogogo:有點小偷懶唷 這應該很基本~ 03/05 15:28
mangogogo:整數唷 sort(round(runif(100,0,100))) 03/05 15:30
weibo:runif(100,0,100), sort 這兩種指令 ~~ 03/05 15:31
mangogogo:歐~是指這個唷~降我會錯意 拍謝 03/05 15:34
mangogogo:sort(as.integer(runif(100,0,100))) <=你只要一個指令? 03/05 15:49
wulingking:謝謝~ 03/05 18:31
wulingking:拍謝最近寫C..回頭寫R忘光光了囧 03/05 18:35
mangogogo:哈哈 加油呀~ C好呀 03/05 20:02
wbson:四樓的名字跟某分配好像喔 03/06 06:57