#' @rdname colSds
#' @return \code{rowSds} returns a numeric vector of length \code{n}.
#' @examples
#' y <- matrix(rnorm(50), 10, 5)
#' rowSds(y)
#' @export
rowSds <- function(x) {
n <- ncol(x)
means <- rowMeans(x)
return(sqrt(rowMeans((x - means)^2)*(n/(n - 1))))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.