Re: [R] trouble with append() in a for loop

2012-06-01 Thread Benjamin Caldwell
Yes, that did it. Thanks. *Ben Caldwell* On Fri, Jun 1, 2012 at 11:41 AM, Sarah Goslee wrote: > Hi, > > Look at this line: > > cross.val.error<-append(cross.val.error.temp,value.temp) > > at each iteration you're overwriting cross.val.error with > cross.val.error.temp and value.temp > > You pr

Re: [R] trouble with append() in a for loop

2012-06-01 Thread Sarah Goslee
Hi, Look at this line: cross.val.error<-append(cross.val.error.temp,value.temp) at each iteration you're overwriting cross.val.error with cross.val.error.temp and value.temp You probably actually need something like cross.val.error.temp <- append(cross.val.error.temp,value.temp) print(cross.va