Skip to content
Prev 309639 / 398502 Next

Name assignment in for loop

... or let R do all the setup:

lmModels <- lapply(seq_len(nrow(dat2)) , FUN = etc. ## the last result
is returned as the list component

I never declare lists and use for() loops to fill them any more.

-- Bert

On Thu, Nov 1, 2012 at 2:51 PM, Peter Alspach
<Peter.Alspach at plantandfood.co.nz> wrote: