Displaying 1 result from an estimated 1 matches for "v1vec".
Did you mean:
d1vec
2010 May 19
1
Why does my RPy2 program run faster on Windows?
...der by dlyprice_date" %(cds,bm,cds,bm)):
d1.append(str(row[0]))
v1.append(row[1])
v2.append(row[2])
t4=datetime.now()
t1=datetime.now()
print "Calculating"
d1.pop(0)
d1vec = robjects.StrVector(d1)
v1vec = robjects.FloatVector(v1)
v2vec = robjects.FloatVector(v2)
r1 = r('Return.calculate(%s)' %v1vec.r_repr())
r2 = r('Return.calculate(%s)' %v2vec.r_repr())
tl = robjects.rlc.TaggedList([r1,r2],tags=('Geo','Nifty'))
df = robject...