Hello Nasrin, I think you might be wanting to use rbind instead of merge
.... ----------------Contact Details:------------------------------------------------------- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Tue, Nov 9, 2010 at 8:22 PM, Nasrin Pak <astronas...@gmail.com> wrote: > Hello; > I have a problem merging data sets. I use this command: > > FileNames <- list.files(path="C:/updated_CFL_Rad_files/2007/11", > full.names=TRUE) > > dataMerge <- data.frame() > > for(f in FileNames){ > + ReadInMerge <- read.csv(file=f, header=T, na.strings="NULL") > + dataMerge <- merge(dataMerge, ReadInMerge,all=T) > + > + } > > and an error occurs.The size of the data is about 7.5 Mb, I don't know what > does 221 Mb mean! > > Error: cannot allocate vector of size 221.6 Mb > In addition: Warning messages: > 1: Reached total allocation of 502Mb: see help(memory.size) > 2: Reached total allocation of 502Mb: see help(memory.size) > 3: Reached total allocation of 502Mb: see help(memory.size) > 4: Reached total allocation of 502Mb: see help(memory.size) > -- > Sincerely > > Nasrin Pak > > [[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. > [[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.