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
> -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
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
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
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
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.
6 matches
Mail list logo