我正在使用R对.txt
文件进行简单的绘图。但是,我的.txt
文件太大了。它大约是1 GB(由3列和41,633,303行组成)。
当我调用read.delim2
将其导入数据框时,我收到一条错误消息,指出矢量不能那么大。有办法解决这个问题吗?
我最终想用这些数据制作一个多面的直方图。
来自txt文件
25 Large Inversion
26 Large Inversion
27 Large Inversion
28 Large Inversion
29 Large Inversion
30 Large Inversion
31 Large Inversion
32 Large Inversion
33 Large Inversion
34 Large Inversion
35 Large Inversion
36 Large Inversion
37 Large Inversion
38 Large Inversion
39 Large Inversion
40 Large Inversion
41 Large Inversion
42 Large Inversion
43 Large Inversion
44 Large Inversion
45 Large Inversion
46 Large Inversion
47 Large Inversion
48 Large Inversion
49 Large Inversion
50 Large Inversion
51 Large Inversion
52 Large Inversion
53 Large Inversion
54 Large Inversion
55 Large Inversion
56 Large Inversion
57 Large Inversion
58 Large Inversion
58 Large Inversion
阅读命令:
mydf <- read.delim2(file = "/home/hayden/polyRNA/Bowtier/datatolook/allData.txt", header = F)
错误
Error: cannot allocate vector of size 500.0 Mb