简体   繁体   English

data.table fread函数

[英]data.table fread function

I am using the new data.table:::fread function (fastest read function I've used in R so far) and I got the following (self explanatory) exception: 我正在使用新的data.table:::fread函数(到目前为止我在R中使用过的最快的读取函数),我得到了以下(自解释)异常:

R) fread(path)
Erreur dans fread(path) : Coercing integer64 to real needs to be implemented

My file (which is a csv separated by tabs) indeed holds big integers like 902160000671352000 . 我的文件(由标签分隔的csv)确实包含大整数,如902160000671352000 My question is then, can I tell fread to #NOT# read the second columns (where those monsters int are) 我的问题是,我可以告诉fread #NOT#读取第二列(那些怪物int是哪里)

Good question. 好问题。 Not yet, but yes you will be able to. 还没有,但是你可以。 Agree with all comments. 同意所有评论。

The TO DO list is at the top of the readfile.c source . TO DO列表位于readfile.c源代码的顶部。 If there's anything missing please let me know. 如果有任何遗漏,请告诉我。 That list covers allowing type overrides, implementing the unimplemented coercions and allowing columns to be skipped. 该列表涵盖允许类型覆盖,实现未实现的强制并允许跳过列。 Hopefully will all be done for first release in 1.9.0. 希望所有这些都将在1.9.0中首次发布。

fread is currently in v1.8.7 which is in development on R-Forge. fread目前在v1.8.7中,正在开发R-Forge。 When finished it'll be released as 1.9.0 to CRAN. 完成后,它将以1.9.0的形式发布给CRAN。 The .0 indicates that new features might possibly change argument names and behaviour; .0表示新功能可能会更改参数名称和行为; ie, don't be surprised if backwards incompatabile changes are made to fread in 1.9.1. 即,如果在1.9.1中对fread做出向后不可比较的更改,请不要感到惊讶。 Given its nature it's hard to imagine anything major will change, though. 鉴于其性质,很难想象任何重大事件都会发生变化。 But that's why I publicised its availability on R-Forge, to get it into the wild early and get things like this right. 但这就是为什么我在R-Forge上宣传它的可用性,让它早早进入野外并获得这样的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM