Re: [R] Saving iterative components

2010-12-14 Thread Annalaura
Thanks a lot Uwe Ligges, I've abandoned R for a few time but now I'm working with it, so I've a question about the last problem that you solved: instead to write cv_1994- idw.cv(X01_1994) cv_1995- idw.cv(X01_1995) cv_1996- idw.cv(X01_1996) cv_1997- idw.cv(X01_1997) .

Re: [R] Saving iterative components

2010-12-14 Thread Liviu Andronic
On Tue, Dec 14, 2010 at 10:34 AM, Annalaura annalaura.ru...@imaa.cnr.it wrote: Thanks a lot Uwe Ligges, I've abandoned R for a few time but now I'm working with it, so I've a question about the last problem that you solved: instead to write cv_1994- idw.cv(X01_1994) cv_1995- idw.cv(X01_1995)

Re: [R] Saving iterative components

2010-12-14 Thread Ivan Calandra
Hi, I'm trying to understand when and how to use do.call(). In this case, would it work with do.call() instead of lapply(), like this? vars - list(names(Tmese[, -(1:2)])) res - do.call(idw.cv, vars) Thanks, Ivan Le 12/14/2010 11:48, Liviu Andronic a écrit : On Tue, Dec 14, 2010 at 10:34 AM,

Re: [R] Saving iterative components

2010-09-26 Thread Uwe Ligges
On 24.09.2010 17:51, Annalaura wrote: Hi, I need help! I am trying to iterate an iterative process to do cross vadation and store the results each time. I have a Spatial data.frame, called Tmese str(Tmese) Formal class 'SpatialPointsDataFrame' [package sp] with 5 slots ..@ data

[R] Saving iterative components

2010-09-24 Thread Annalaura
Hi, I need help! I am trying to iterate an iterative process to do cross vadation and store the results each time. I have a Spatial data.frame, called Tmese str(Tmese) Formal class 'SpatialPointsDataFrame' [package sp] with 5 slots ..@ data :'data.frame': 14 obs. of 17 variables: ..

[R] Saving Iterative Components

2009-08-14 Thread Phil T
Dear All, I am trying to iterate an iterative process (i know R is not the best place for so much looping but i have to so tough!) and store the resulting data from each iteration to then be graphed. In simple form the script looks like this for(i in tracks) { a -

Re: [R] Saving Iterative Components

2009-08-14 Thread jim holtman
try something like this using 'list' results.dataset - list() for(i in tracks) { a - (subset(data, data$Id==i)) result.dataset[[i]] - function(a, other.arguements) ### this function is the other iterative process, but its in another script and is imported in so dont