On Sun, 16 Aug 2009 22:43:14 -0700 (PDT) afx111 <afx...@yahoo.com>
wrote:

A> getSymbols("YHOO")
A> retYHOO <- Return.calculate(Cl(YHOO))
A> > sd(retYHOO)
A> 
A> YHOO.Close 
A>         NA 
A> 
A> but i received an NA....can any assist? tks!

You receive NA because getSymbols went wrong, so YHOO was empty. Try
getSymbols('YHOO',src='yahoo',return.class='ts')

Btw. there is a r-finance mailing list which is a good place for such
questions. 

Hth 
Stefan

______________________________________________
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