I have a large (450MB / 250 million rows) flat file of 1s and 0s that looks like this...
1 0 0 1 0 1 0 etc... I am using the following method to read it into R...
dat <- as.numeric(readLines("my_large_file")) I am getting the desired data structure but it takes a long time. Any suggestions for a quicker method to achieve the same result?
NB. The order of the 1s and 0s is important to conserve. I would consider options in either python of unix command line but the final data structure is required in R for plotting a graph.