What package or library are you using?
What is YHOO.Close ?
Try str(retYHOO) to see what it looks like.
--- On Mon, 8/17/09, afx111 wrote:
> From: afx111
> Subject: [R] Newbie question re stddev, quantmod and performanceanalytics
> To: r-help@r-project.org
> Received: Mo
try:
?sd
sd(retYHOO, na.rm=TRUE)
On Mon, Aug 17, 2009 at 1:43 AM, afx111 wrote:
>
> Hi,
>
> I am trying to calculate the std dev of returns of YHOO so far i got:
>
> getSymbols("YHOO")
> retYHOO <- Return.calculate(Cl(YHOO))
>> sd(retYHOO)
>
> YHOO.Close
> NA
>
> but i received an NAc
On Sun, 16 Aug 2009 22:43:14 -0700 (PDT) afx111
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 NAcan any assist? tks!
You receive NA because getSymbols went wrong, so YHOO was empty. Try
getSym
Hi,
I am trying to calculate the std dev of returns of YHOO so far i got:
getSymbols("YHOO")
retYHOO <- Return.calculate(Cl(YHOO))
> sd(retYHOO)
YHOO.Close
NA
but i received an NAcan any assist? tks!
--
View this message in context:
http://www.nabble.com/Newbie-question-re-stdd
4 matches
Mail list logo