Hi all,

I'm using the try function for data import with read.csv function. I would
like to know if there is a double allocation of memory when using this code
test.t <- try(input1 <- read.csv("myfile.csv") )
compared to this one
test.t <- try( read.csv("myfile.csv") )

I think for the first code, both test.t and input1 have the input data (when
no error is raised). So I use twice the memory for the same dataset. But I
look at the RAM memory used by R for these two code (in windows XP with
process explorer), the first code seems to use less memory... which is
counter intuitive.

what is the truth?

Thanks in advance

Christophe

PS : I'm using R 2.9.2 on win XP

-- 
Christophe DUTANG
Ph. D. student at ISFA

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to