I am using R to do a simple plotting with a .txt
file. However, my .txt
file is too large. It is about 1 GB (consisting of 3 columns and 41,633,303 rows).
When I call read.delim2
to import it into a data frame, I get an error saying that vectors cannot be made that big. Is there a way around this?
I eventually want to make a faceted histograms with this data.
head from txt file
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
Command to read:
mydf <- read.delim2(file = "/home/hayden/polyRNA/Bowtier/datatolook/allData.txt", header = F)
Error
Error: cannot allocate vector of size 500.0 Mb