如何增加矢量大小?
我希望用 R 解决“无法分配大小向量...”的问题,以便在 R 中加载大型数据集,有人可以帮助我吗? 我听到有人说要写“--max-vsize=500M”,但我不明白该写在哪里。 非常感谢!!
I wish to solve the "cannot allocate vector of size..." problem with R, in order to load large datasets in R, can someone help me??
I heard someone saying to write "--max-vsize=500M", but I'didn't understand where to write it.
Thank you very much!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您也许能够清理工作区,这可以使用 gc() 函数(即垃圾收集)来完成。
沿着这些思路,这将告诉您对象的大小,以便您可以删除不需要的对象更多的
You might be able to clear up your workspace, which you can do with the gc() function (i.e. garbage collection)
Along those lines, this will tell you the sizes of your objects, so you can remove objects you don't need any more
《The R Inferno》第 15 页(位于 http://www.burns-stat .com/pages/Tutor/R_inferno.pdf )给出了当您收到此类消息时该怎么做的三种可能性:
浪费内存的一种非常常见的方式是增长对象——这就是地狱的第二圈。
如今,“更大的计算机”可能意味着转向 64 位。
Page 15 of 'The R Inferno' (at http://www.burns-stat.com/pages/Tutor/R_inferno.pdf ) gives three possibilities for what to do when you get such a message:
A very common way to waste memory is to grow objects -- that's Circle 2 of the Inferno.
These days "bigger computer" may mean moving to 64-bits.