R/row_SD.R

Defines functions rowSD

Documented in rowSD

#'Get standard deviation for rows in a matrix
#'
#' @description rowSD() calculates row-wise standard deviation for a matrix
#'
#' @param matrix a matrix
#' 
#' @keywords rowSD()
#' @export
#' @return a numerical vector
#' @examples
#' row_Std_Dev <- rowSD(matrix)

rowSD <- function(matrix) {
  SD <- apply(matrix, 1, sd)
  return(SD)
}
jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.