Is there any support for the following R functionality through rpy?

L3 <- LETTERS[1:3]
(d <- data.frame(cbind(x=1, y=1:10), fac=sample(L3, 10, replace=TRUE)))

# The ability to do this indexing is what I would like...
d[,2]


Also I would like to subset a data frame by its values, i.e. in R
subset(d, d$y > 5)

Is there a better way than...

sel = [int(y)>5 for y in d.y]
r.subset(d, sel)

in python (where d is now my DataFrame object in python)? Is the int 
necessary? I seem to have my numeric data frame types returned to me as 
strings in python.

Thanks,
John.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to