Re: [R] an error about " return some vectors from some functions within a function"

2010-02-18 Thread jim holtman
Might be the case that the 'while' loop was not executed and therefore 'ck1' was not defined. You might put a check to see if that was happening. Also you are incrementing 'count1' in the functions and it is not being passed in as a parameter. What are you expecting it to do? Is it defined in t

[R] an error about " return some vectors from some functions within a function"

2010-02-18 Thread Nai-Wei Chen
Dear all, When I try to return some vectors from some functions within a function, it indicate an error," Error in rbind(ck1, ck2, ck3) : object 'ck1' not found", in one of the iterations and stop.  Since I am not experienced in programming, can anyone give me a suggestion to inspect this