作者celestialgod (天)
看板R_Language
標題[問題] (救回) 多回圈loop 與paste
時間Sun Nov 20 14:28:46 2016
相關作者訊息已經遮蔽
想要請問一下
我想要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://webptt.com/m.aspx?n=bbs/R_Language/M.1471795969.A.D6F.html
1F:→ 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