【发布时间】:2012-12-24 16:11:49
【问题描述】:
我想在 IPython 笔记本中完成 R 代码循环。最好的方法是什么?
l = []
for i in range(10):
# execute R script
%%R -i i -o result #some arbitrary R code
# and use the output
l.append(result)
这可以在笔记本中完成吗(循环下一个单元格)?
【问题讨论】:
标签: ipython ipython-notebook ipython-magic