Re: [Rpy] data frame getting factorized

2009-01-31 Thread Laurent Gautier
It's a good question. Let's take a self-contained example: robjects.r(''' dataf <- data.frame(x=sample(c("a", "b"), 6, replace=TRUE), y=1:6)''') tt = robjects.r('dataf[[1]]') Now tt is reflecting an R object of type "factor", which is as you know most a vector of integers w

[Rpy] data frame getting factorized

2009-01-30 Thread Jeff Gentry
Another one that I'm figuring is operator error on my part, but the last one wasn't so who knows :) I've been dealing with some data.frames w/ no real problem until now, where everything seems to be getting factorized (ie 0,1,2,etc instead of 'abc', 'def', 'ghi') coming across the linkage, presuma