Displaying 1 result from an estimated 1 matches for "sample2899".
2010 Mar 30
1
dataframe in loop
..."3094" "3095" "3211"
If I dont do the loop and query for one fund say 2899,
gmret.2899<-sqlQuery(channel,"select caldt, mret from Monthly_returns
where crsp_fundno = 2899 and caldt > 19900630 order by caldt")
gmret.2899
It will give me what I want:
sample2899<-head(gmret.2899)
sample2899
caldt mret
1 19900731 0.014204546
2 19900831 -0.050420168
3 19900928 -0.039823009
4 19901031 0.006144393
5 19901130 0.054961832
6 19901231 0.019632639
Can anybody help me with the loop?
Thanks a lot
Muting