Re: [R] Isolating a column within a loop
Thanks! I've learnt something there! Steve _ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now __ R-help@r-project.
Re: [R] Isolating a column within a loop
Try this: for (i in seq(nrow(index))) { assign(paste(model, "_mean_",index$year[i], index$month[i], sep=''), mean(get(paste(model, index$year[i], index$month[i], sep=''))[,3])) } On Mon, Feb 1, 2010 at 11:49 AM, Steve Murray wrote: > > Dear all, > > I am trying to calcul