Stop copy-on-modify behavior in R in a while loop

后端 未结 0 1780
深忆病人
深忆病人 2020-12-03 10:24

I\'m doing a rejection sampling on R that needs to be as efficient as possible. Here is my raw code :

N <- 1e8
x <- rexp(N, 3) + rexp(N, 3)
todo <- r         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题