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 ?
>
> --
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
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
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
??: 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
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