Use
fun = r(" function(x) { x+1 }")
-G
- Original Message -
From: Antonio Garcia-Martinez <[EMAIL PROTECTED]>
To: rpy-list@lists.sourceforge.net
Sent: Thu Nov 20 23:35:25 2008
Subject: [Rpy] uniroot, and r.function()
I'm trying to use R's uniroot functi
I'm trying to use R's uniroot function from within python. The first arg is a
function, but I'm having trouble creating a function inside python using
r.function().
For example, a naive attempt:
>>> r.function( "x", "x+1" )
Traceback (most recent call last):
File "", line 1, in
rpy.RPy_RExc