【发布时间】:2014-05-12 08:57:05
【问题描述】:
我遇到了 ff 包的写入错误。 This answer 建议解决方案是重载函数“[
【问题讨论】:
标签: r overloading ff ffbase
我遇到了 ff 包的写入错误。 This answer 建议解决方案是重载函数“[
【问题讨论】:
标签: r overloading ff ffbase
只需重写“[
require(ff)
## For the assignment
get("[<-.ffdf")
args(get("[<-.ffdf"))
"[<-.ffdf" <- function (x, i, j, value){
## put your code in here and make sure it does not open too many ff files which are in x
}
## For the getter
args(get("[.ffdf"))
"[.ffdf" <- function (x, i, j, drop = ncols == 1){
## put your code in here and make sure it does not open too many ff files which are in x
}
【讨论】:
另一种解决方案是增加系统设置以允许同时打开更多文件。该系统设置是 ff 数据帧的限制因素。我解释了如何更改此设置on SO here。
【讨论】: