[R] Continuasly Compunded Returns with quantmod-data

barb mainzel89 at hotmail.com
Mon Nov 21 16:42:38 CET 2011


Many Thanks - Also for the link!
It works nice! 

If i have further question, can i post them here or should i open a new
thread?


1)
If i want the following to make a function: 
I do have to convert it, but i can´t get rid of these " " (brackets).

func<-function(y) {
library(quantmod)
getSymbols("y",from="2011-11-01")
chartSeries(y)
}

func(MSFT)

2) How i can get rid of the time dates and get a simple vector?

           GOOG.Open
2011-11-01    580.10
2011-11-02    584.90
2011-11-03    587.00
2011-11-04    593.50
2011-11-07    593.32
2011-11-08    609.00
2011-11-09    604.26
2011-11-10    605.93
2011-11-11    601.30
2011-11-14    608.00
2011-11-15    612.80
2011-11-16    612.08
2011-11-17    610.05
2011-11-18    602.00



Regards 
Tonio
 


--
View this message in context: http://r.789695.n4.nabble.com/Continuously-compounded-Returns-with-quantmod-data-tp4090014p4091937.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list