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, presumably the difference
here being that the columns on this data.frame happens to be a factor
while the columns on the other ones I'm guessing were not.  Laurent, for
context, this is a pData data.frame from an AnnotatedDataFrame.  Note that
I can get this working by adding an 'as.character' here, but I just wanted
to bring this up in case I'm doing something wrong and/or this isn't
intended behavior.

Example:
tt = robjects.r('pData(pheno)[,4]')
>>> [t for t in tt]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1]

>>> robjects.r('print(pData(pheno)[1,4])')
[1]
 Test



Levels: 

Test



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to