Displaying 1 result from an estimated 1 matches for "v2vec".
Did you mean:
v2ve
2010 May 19
1
Why does my RPy2 program run faster on Windows?
...m)):
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 = robjects.DataFrame(tl)
ts2 = r.timeSeri...