Displaying 1 result from an estimated 1 matches for "readhh".
Did you mean:
reachh
2006 Nov 07
1
reading VERY large binary files
...rge binary file ... the
total file is 4 gigs. I want to select rows out of the file, and the
current procedure I run works but is prohibitively slow (takes more than
a day to run and still won't complete). Is there any faster way to
accomplish this?
My current procedure looks like this:
readHH <- function(file_name, hhid_list) {
incon=file(file_name, open="rb")
result=data.frame()
tran=list()
byte_mark=0
last_1M_mod=0
file_size=file.info(file_name)$size
write.table(paste("Data pulled from", file_name, sep=" "),
file="readHH_output.txt", s...