[R] Printing RVector

2010-01-20 Thread Bhanu Mangipudi
Hi All, I am new to python, R and rpy2. I am trying to print an Rvector say v and I want to print 1st element so the statement will be *print (v[0])* and this gives me *output [1] 876* but the real value I should get is 876. Can any one can help how to get rid of [1] while printing. I am using

[R] fisher.test negative value error

2009-11-11 Thread Bhanu Mangipudi
Hi all, I am new to python, R and rpy2. I having few errors when I am using 'fisher.test' function where I am struck now. Please help to fix these bugs. My code for fisher.test goes this way *from rpy2 import * import rpy2.robjects as robjects def fisherExact(a,b,c,d): v = [a,b,c,d] m = rob