Using memisc to import stata .dta file into R
问题 I have a 700mb .dta Stata file with 28 million observations and 14 column variables When I attempt to import into R using foreign's read.dta() function I run out of RAM on my 8GB machine (page outs shoot into GBs very quickly). staph <- read.dta("Staph_1999_2010.dta") I hunted around and it sounds like a more efficient alternative would be to use the Stata.file() function from the memisc package. When I call: staph <- Stata.file("Staph_1999_2010.dta") I get a segfault: *** caught segfault ***