R - read.table导入数据集的一半 - 没有错误或警告 [英] R - read.table imports half of the dataset - no errors nor warnings

查看:230
本文介绍了R - read.table导入数据集的一半 - 没有错误或警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个csv文件,约200列和〜170K行。数据已经广泛修改,我知道它是完好的。当read.table完成后,我看到大约一半的行已经导入。没有警告和错误。我设置选项(warn = 2)。我使用64位最新版本,我将内存限制增加到10gig。在这里抓住我的头...不知道如何继续调试这个。

I have a csv file with ~200 columns and ~170K rows. The data has been extensively groomed and I know that it is well-formed. When read.table completes, I see that approximately half of the rows have been imported. There are no warnings nor errors. I set options( warn = 2 ). I'm using 64-bit latest version and I increased the memory limit to 10gig. Scratching my head here...no idea how to proceed debugging this.

编辑

当我说一半文件,我不是指上半场。最后一个观察结果是文件结束....因此它看起来是随机的。

Edit
When I said half the file, I don't mean the first half. The last observation read is towards the end of the file....so its seemingly random.

推荐答案

字符(#)(请尝试在read.table中设置选项 comment.char =)。此外,请检查报价选项设置是否正确。

You may have a comment character (#) in the file (try setting the option comment.char = "" in read.table). Also, check that the quote option is set correctly.

这篇关于R - read.table导入数据集的一半 - 没有错误或警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆