On 06/11/12 05:20, Eva Prieto Castro wrote:
Hi,

I solved as follws:

 f <- formula(y ~ x1 + x2)
  single <- do.call("lm", list(f, data=mydf))

It works in every machine!!.

Well, if you are happy with the result, I guess that can't be argued with.

However the fact that your previous attempts worked on some machines
and not on others indicates to me that something fundamentally wrong
is going on somewhere.  If it were *my* package I'd want to track it down,
figure out exactly why this anomaly was happening, and fix it from an
informed point of view.  Just trying things more or less at random until
something works is not a good strategy for writing robust and reliable
code.

It seems to me that resorting to the use of do.call() should not be necessary, and it is not at all clear to me why this should help with the "no encontrado"
problem anyway.

    cheers,

        Rolf

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to