Re: [R] Incorrect Dimension

2009-09-17 Thread Schalk Heunis
On Fri, Sep 18, 2009 at 8:12 AM, Schalk Heunis wrote: > Marcio > Looking at the script (not much explanation re your intention), I think > there is a couple of problems: > 1. Not sure if the attached was supposed to be working code, but the > assignment operator is <- not <= > 2. The functions sho

Re: [R] Incorrect Dimension

2009-09-17 Thread Schalk Heunis
Marcio Looking at the script (not much explanation re your intention), I think there is a couple of problems: 1. Not sure if the attached was supposed to be working code, but the assignment operator is <- not <= 2. The functions should be defined OUTSIDE the loop, otherwise you are redefining the f

[R] Incorrect Dimension

2009-09-17 Thread Marcio Resende
I am new in R and i am having trouble here. I´ve already searched in the list but hasn´t helped When i run this script above i get the message "Error in gen[j, i] : incorrect number of dimensions". However gen is 1000x200 (ind x loc) and so is g could anybody help me for (i in 1 : loc) { #l