【问题标题】:Error while reading large file using ff package使用ff包读取大文件时出错
【发布时间】:2017-04-04 05:18:41
【问题描述】:

我正在尝试使用“ff”包读取一个大文件(1.51 GB)。使用了以下命令:

atmins = read.csv.ffdf(file="atmins.csv", header=TRUE, VERBOSE=TRUE,
                       first.rows=10000, next.rows=50000, colClasses=NA)

但是,一段时间后,我收到以下错误:

UseMethod("recodeLevels") 中的错误:没有适用的方法 'recodeLevels' 应用于“逻辑”类的对象

我该如何解决这个问题?

【问题讨论】:

    标签: r csv ff


    【解决方案1】:

    使用 data.table 包中的 fread

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-07
      相关资源
      最近更新 更多