Re: [R] Errors occured

From: Roger Bivand <Roger.Bivand_at_nhh.no>
Date: Mon 24 Oct 2005 - 19:29:16 EST


On Sun, 23 Oct 2005, Leaf Sun wrote:

> Hi all,
>
> Has anybody have the experience in the errors:
>
> Error in data.frame(..., check.names=FALSE): arguments imply differing
> number of rows: 343,15
>
> This is the error occured in the middle of the program. I don't think
> the data frame has any problem, if there is problem with the program,
> why it happened in the middle?

Further to Uwe's advice, looking at the traceback() output may give you an idea of what is going wrong, and if your script is adequately written, using debug() on the function in which the error occurs will let you examine what is being passed to data.frame() before the error happens.

>
> Does anybody have such an experience? It seems so weird to me.
>
> Thanks a lot!
>
> Leaf
>
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand@nhh.no

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon Oct 24 19:33:49 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 21:12:25 EST