[R] Newbie question re stddev, quantmod and performanceanalytics

jim holtman jholtman at gmail.com
Mon Aug 17 17:55:58 CEST 2009


try:

?sd

sd(retYHOO, na.rm=TRUE)

On Mon, Aug 17, 2009 at 1:43 AM, afx111<afx111 at yahoo.com> 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 NA....can any assist? tks!
> --
> View this message in context: http://www.nabble.com/Newbie-question-re-stddev%2C-quantmod-and-performanceanalytics-tp25001293p25001293.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?




More information about the R-help mailing list