[R] Standard deviation for rows
Greg.Snow at imail.org
Wed Oct 15 20:23:53 CEST 2008
> apply( mymatrix, 1, sd )
Will give the row standard deviations of a matrix or matrix like data frame.
There are also some functions in add-on packages that do row sd's or var's.
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Alex99
> Sent: Wednesday, October 15, 2008 11:17 AM
> To: r-help at r-project.org
> Subject: [R] Standard deviation for rows
> Hi everyone,
> I have just started using R, and I have a simple question.
> How can I get the Standard deviation for rows. basically I am looking
> something like "rowMeans()"
> but for Standard deviation (I tried "rowSds()" didn't exist)
> View this message in context: http://www.nabble.com/Standard-deviation-
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help