Re: [Rpy] Custom R functions from Python

2013-03-14 Thread Fangyu He
rpy2 is more convenient. All you need is just read the following page. The documentation is comprehensive. http://rpy.sourceforge.net/rpy2/doc-2.1/html/index.html 2013/3/15 Rahul Manghwani > Hi, > > I am a newbie to R, Is it possible to call custom R functions from python > using rpy ? > > --

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-27 Thread Fangyu He
sudo apt-get update sudo apt-get install r-base r-base-dev sudo apt-get install python-rpy2 Fangyu He ? 03/25/2012 03:47 PM, Yuanda Zhu ??: Hi, When I was trying to install rpy2-2.2.5 to Python-3.2.2 in Win7, the error msg said "Tried to guess R's HOME but no R command in the P

[Rpy] R function written with python can't work as parameter in R

2012-03-03 Thread Fangyu He
n f so it can be exposed to R cost_fr = ri.rternalize(cost_f) # starting parameters start_params = FloatVector((-1.2, 1)) # call R's optim() with our cost funtion res = stats.optim(start_params, cost_fr) So how can I get a function ca

[Rpy] How can create a R function which have two or more parameters?

2012-02-29 Thread Fangyu He
n f so it can be exposed to R cost_fr = ri.rternalize(cost_f) # starting parameters start_params = FloatVector((-1.2, 1)) # call R's optim() with our cost funtion res = stats.optim(start_params, cost_fr) So how can I get a function ca

[Rpy] How can create a R function which have two or more parameters?

2012-02-29 Thread Fangyu He
??: Re: [Rpy] How can create a R function which have two or more parameters? ??: Wed, 29 Feb 2012 08:31:49 +0800 ???:Fangyu He ???: RPy help, support and design discussion list Hi everyone, I want to create a R function which can be used as a parameter

Re: [Rpy] How can create a R function which have two or more parameters?

2012-02-28 Thread Fangyu He
n f so it can be exposed to R cost_fr = ri.rternalize(cost_f) # starting parameters start_params = FloatVector((-1.2, 1)) # call R's optim() with our cost funtion res = stats.optim(start_params, cost_fr) So how can I get a function ca