I've been trying unsuccessfully the past two days to convert a large CSV (9 gigs) into XDF format using the RxImport function.
The process seems to start off well with R server reading in the data chunk by chunk but after a few minutes it slows to a crawl and then fails completely after around 6 hours with Windows stopping the server saying its run out of RAM.
The code I'm using is as follows:
pd_in_file <- RxTextData("cca_pd_entity.csv", delimiter = ",") #file to import
pd_out_file <- file.path("cca_pd_entity.xdf") #desired output file
pd_data <- rxImport(inData = pd_in_file, outFile = pd_out_file,
stringsAsFactors = TRUE, overwrite = TRUE)
I'm running Microsoft R Server, version 9.0.1. on a Windows 7 machine with 16gig of RAM.
Thanks