Re: [R] assigning and saving datasets in a loop, with names changing with "i"

2007-12-21 Thread Tony Plate
Marie Pierre Sylvestre wrote: > Dear R users, > > I am analysing a very large data set and I need to perform several data > manipulations. The dataset is so big that the only way I can play with it > without having memory problems (E.g. "cannot allocate vectors of size...") > is to write a batch s

Re: [R] assigning and saving datasets in a loop, with names changing with "i"

2007-12-20 Thread Greg Snow
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marie > Pierre Sylvestre > Sent: Tuesday, December 18, 2007 7:25 PM > To: r-help@r-project.org > Subject: [R] assigning and saving datasets in a loop,with > names changing wi

Re: [R] assigning and saving datasets in a loop, with names changing with "i"

2007-12-20 Thread Henrik Bengtsson
library(R.utils); for (ii in 1:12) { value <- my.fun(my.list[ii]); saveObject(value, file=sprintf("data%02d.RData", ii)); rm(value); gc(); } for (ii in 1:12) { value <- loadObject(sprintf("data%02d.RData", ii)); } On 18/12/2007, Marie Pierre Sylvestre <[EMAIL PROTECTED]> wrote: > Dear R

Re: [R] assigning and saving datasets in a loop, with names changing with "i"

2007-12-19 Thread Moshe Olshansky
Won't it be simpler to do: for (i in 1:12){ data <- my.fun(my.list[i])) save(data,file = paste("data",i,".RData", sep="")) } --- Marie Pierre Sylvestre <[EMAIL PROTECTED]> wrote: > Dear R users, > > I am analysing a very large data set and I need to > perform several data > manipulations. T

Re: [R] assigning and saving datasets in a loop, with names changing with "i"

2007-12-18 Thread Benilton Carvalho
you want to use: save(list=paste("data", i, sep=""), file=paste("data", i, ".Rdata", sep="")) b On Dec 18, 2007, at 9:24 PM, Marie Pierre Sylvestre wrote: Dear R users, I am analysing a very large data set and I need to perform several data manipulations. The dataset is so big that the

[R] assigning and saving datasets in a loop, with names changing with "i"

2007-12-18 Thread Marie Pierre Sylvestre
Dear R users, I am analysing a very large data set and I need to perform several data manipulations. The dataset is so big that the only way I can play with it without having memory problems (E.g. "cannot allocate vectors of size...") is to write a batch script to: 1. cut the data into pieces 2.