R中,return和print的区别

return,循环程序终止,返回结果,只能在函数中应用;

print,不会阻止循环进行,返回结果,可应用到循环、函数等。

posted @ 2017-08-12 18:52  靠谱小姐  阅读(981)  评论(0编辑  收藏  举报