R语言for循环的替换方案

来源:互联网 发布:mac不能更新软件 编辑:程序博客网 时间:2024/05/22 15:11

R语言中,for循环运行比较慢。

for(i in 1:1000){print(i^2)}
原创粉丝点击