作者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/cn.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