错误:protect():保护堆栈溢出
问题描述:
我在运行大数据时出错。误差已经通过下述样品样品说明错误:protect():保护堆栈溢出
负载数据
mdata <- as.matrix(read.table('https://gubox.box.com/shared/static/qh4spcxe2ba5ymzjs0ynh8n8s08af7m0.txt', header = TRUE, check.names = FALSE, sep = '\t'))
安装和装载库
source("https://bioconductor.org/biocLite.R")
biocLite("impute")
library(impute)
上嵌套表达式
options(expressions = 500000)
应用k的数目设置了一个限制 - 缺失值填补的最近邻居
res <-impute.knn(mdata)
和我:
Error: protect(): protection stack overflow
如果有人有解决方案或建议,请分享。 谢谢
答
为了解决我的问题,我试图通过块使用数据块。你可以看看post。
+0
欢迎来到Stack Overflow!答案链接被认为是不好的做法,你可以编辑你的答案,包括相关的代码和简短的解释? (看起来你甚至可以在这里复制你的其他答案) –
你试过像这样启动R:'R --max-ppsize 500000'? (https://stackoverflow.com/questions/32826906/how-to-solve-protection-stack-overflow-issue-in-r-studio?rq=1) –
是的,我做到了。但没有希望。 – Mashranga
在这里有同样的问题。在插入符号之后使用rtsne,data.table等。您最终是否解决了您的问题? – YCR