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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to