[Rpy] Indexing data frames and matrices

2008-06-23 Thread John Reid
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

[Rpy] rpy memory issues?

2008-06-23 Thread Jung, Paul
I'm having the following issue with rpy. I'm calling r.lm to do a bunch of regressions (several hundred thousand over a loop) but get a segfault as listed below. I think it is a memory issue because the same regression will work if I start the loop closer to where the segfault occurs. Also, I thi