On Sat, Jul 26, 2008 at 3:38 PM, laurent oget <[EMAIL PROTECTED]> wrote:
> Here you are:
>
from rpy import *
a=[1,2,3,4]
b=r['<'](a,3)
b
> [True, True, False, False]
You can of course do this in pure python, which might be easier
depending on why you want to do this.
a = [1,2,
Here you are:
>>> from rpy import *
>>> a=[1,2,3,4]
>>> b=r['<'](a,3)
>>> b
[True, True, False, False]
>>>
2008/7/25 Zhang, Minhua <[EMAIL PROTECTED]>:
> In R, I could do:
>
> > a <- c(1,2,3,4)
> > smalla <- a<3
> > smalla
> [1] TRUE TRUE FALSE FALSE
>
> But how do I create such a variable '
On Fri, Jul 25, 2008 at 9:30 PM, Shulin Zhuang <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> I am new to rpy.
> Today, I just install rpy, R2.7, python2.5 and can successful use it under
> windows.
>
> Question1:
>
> ...
> if I only execute r.plot_default(x, y1, col="blue", type="o") for one
> time,r
Revision: 595
http://rpy.svn.sourceforge.net/rpy/?rev=595&view=rev
Author: lgautier
Date: 2008-07-26 09:14:58 + (Sat, 26 Jul 2008)
Log Message:
---
rinterface:
- added method rcall for SexpClosure, to allow calls to R functions mixing
named and
anonymous parameters wh