discription/recipy how to do that, I or my colleague can give it a
try.
best wishes
Oliver
From: Laurent Gautier
To: Oliver Tomic
Cc: "rpy-list@lists.sourceforge.net >> \"RPy help,support and design
discussion list\""
Date: 20.08.2011 18:59
Subject:
Dear list,
I am not sure whether this is the appropriate list to ask, but I'd like to
use it as a starting point. If I should address this problem some other
place, please let me know.
Within our research project we are developing a small data analysis
application called "ConsumerCheck" which
s/4.1.30101/lib/python2.
> 5/site-packages/rpy2/robjects/__init__.pyc
> in default_py2ri(o)
> 87 res = rinterface.SexpVector([o, ], rinterface.STRSXP)
> 88 elif isinstance(o, list):
> ---> 89 res = r.list(*[conversion.ri2py(conversion.py2ri(x))
Hi Simone,
maybe this helps:
[code START]
>>> import numpy
>>> a = [[1,2,3],[4,5,6]]
>>> aa = numpy.array(a)
>>> aa
array([[1, 2, 3],
[4, 5, 6]])
>>> import rpy2.robjects as ro
>>> import rpy2.robjects.numpy2ri
>>> aR = ro.conversion.py2ri(aa)
>>> aR
>>> print aR
[,1] [,2] [,
Thanks again, Laurent and Anne!
This should have been obvious to me. I guess my brain doesn't function
propoerly today. Maybe it is time to go home.
Thanks again!
Cheers
Oliver
Laurent Gautier wrote on 07.01.2009 14:34:19:
> Oliver Tomic wrote:
> > Hi again,
> >
Hi again,
I am reading the documentation but I must be missing something. When I try
this from the documentation everything works fine:
import rpy2.robjects as robjects
rsum = robjects.r['sum']
res = rsum(robjects.IntVector([1,2,3]))
Here, however I get an syntax error:
import rpy2.robjects
gt; http://rpy.sourceforge.net/rpy2/doc/html/robjects.html?
> highlight=evaluate#strings-as-r-code
> and eventually
> http://rpy.sourceforge.net/rpy2/doc/html/robjects.html?
> highlight=evaluate#r-the-instance-of-r
>
>
> L.
>
>
>
> Oliver Tomic wrote:
> >
ile "C:\Python25\Lib\site-packages\rpy2\robjects\__init__.py", line 503,
in __getitem__
res = rinterface.globalEnv.get(item)
LookupError: 'library(epiR)' not found
Cheers
Oliver
Oliver Tomic wrote on 07.01.2009 10:18:28:
> Hi,
>
> I am sorry about this trivial questio
Hi,
I am sorry about this trivial question, but what is the obvious way to
import a library in R in via rpy2?
If I do the following in R:
> library(epiR)
Package epiR 0.9-14 is loaded
Type help(epi.about) for summary information
>
What is the equivalent in rpy2?
Windows XP
Python 2.5
rpy2 2
Thanks for the help, guys!
laurent <[EMAIL PROTECTED]> wrote on 14.11.2008 20:52:12:
>
> Beside
> http://rpy.sourceforge.net/rpy2/doc/html/rlike.html#module-rpy2.
> rlike.functional
>
> there might only be unit tests, then the source code. ;-)
>
I should have had a look at that part of the docu
Hi,
Laurent and Laurent helped me solve exactly the same problem a few days
ago.
R.exe needs to be in the PATH environment variable. For more details:
http://sourceforge.net/mailarchive/forum.php?thread_name=1226070221.6870.96.camel%40hot-spring&forum_name=rpy-list
Cheers
Oliver
Sorry, my bad!
I inserted "C:\Program Files\R\R-2.7.0\bin\R.exe" in the path which gave
the same error as before.
Now I changed it to "C:\Program Files\R\R-2.7.0\bin" and tt works fine
now. :-)
Thank you for you help again, Laurent!
Cheers
Oliver
laurent <[EMAIL PROTECTED]> wrote on 08.11.2008
Thanks for the help so far. I inserted the R executable in the Path, but I
still get the same error.
Unfortunately, I don't know how to define the R_HOME environment variable
as suggested in
http://rpy.sourceforge.net/rpy2/doc/html/rinterface.html#initialization.
Cheers
Oliver
laurent <[EMAIL
Hi,
I just tried out rpy2 for the first time:
WinXP
Python 2.5.2
Numpy 1.1.1
R 2.7.0
rpy2-2.0.0rc1
I get an error when trying this:
>>> import rpy2.robjects as ro
Traceback (most recent call last):
File "", line 1, in
import rpy2.robjects as ro
File "C:\Python25\Lib\site-packages\rpy2
Hi list,
I use:
Windows XP
numpy 0.9.8
Rpy 1.0-RC1
I have some data that I keep in a python-dictionary and which I would like
to transfer into a data frame in R.
The dictionary has 20 keys with each key being assigned to a list holding
336 numerical values.
(that is 20 * 336 = 6720 entries for t
Hi list,
I use:
Windows XP
numpy 0.9.8
Rpy 1.0-RC1
I have some data that I keep in a python-dictionary and which I would like
to transfer into a data frame in R.
The dictionary has 20 keys (representing the columns) with each key being
assigned to a list holding 336 numerical values (representi
16 matches
Mail list logo