[R] to.yearly()

sheenmaria sheenmaria6 at gmail.com
Fri Oct 19 11:25:42 CEST 2012


v="IBM"
library(quantmod)
v
v1=getSymbols(v)
to.yearly(v1)
===============================
when i pass the value through a variable in to.yearly() function it shows
the error msg like 
"Error in try.xts(x) : 
  Error in UseMethod("as.xts") :   no applicable method for 'as.xts' applied
to an object of class "character""

i need the result of OHLC value of the ticker .(and i need to pass the
ticker name through a variable name too)
-----------------------------------------------------------------------------------------
anyone can help me . 
Thank you 



--
View this message in context: http://r.789695.n4.nabble.com/to-yearly-tp4646723.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list