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)
これはノートブック内で実行できますか(次のセルをループします)?