看板 R_Language 關於我們 聯絡資訊
相關作者訊息已經遮蔽 想要請問一下 我想要i j paste 在sas我比較熟悉會使用 data data; do i= 1 to 5; do j= 1 to 5; output; end; end; run; 然後cats連起來 我嘗試在r 使用paste0 (1:5,1:5) 卻失敗 另外嘗試先創一個空的dataset 然後放入i j 的loop 在paste 結果也是失敗 可以請問一下要怎樣處理嗎 謝謝 -- ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1471795969.A.D6F.html
celestialgod: apply(expand.grid(1:5,1:5),1,paste, collapse="") 08/22 00:26
※ 編輯: celestialgod (36.233.51.224), 11/20/2016 14:53:30