On Tue, Apr 20, 2010 at 10:05 PM, Laurent Gautier <lgaut...@gmail.com> wrote:
[...]
> locfit = importr("locfit")
>
> would be recommended (so you are sure of where "locfit" comes from)
>
> locfit is advertised to accept a /formula/.
> I'd suspect that the error is because loc does not implicitly turn strings
> into formulae (as lm does). Try if the following helps:
>
> fit = locfit.locfit(ro.Formula("y ~ x"), data = df)

Ahh... yes, that does work.

Many thanks!

 Christian.

------------------------------------------------------------------------------
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to