| rowVars_fast | R Documentation | 
Computes Row Variances Efficiently
rowVars_fast(x, n_cores)
x | 
 A numeric dense matrix for which to compute row variances.  | 
n_cores | 
 The number of cores to utilize for parallel processing.  | 
A numeric vector containing the variance for each row of the input matrix.
library(Matrix)
rand_vals <- sample(0:10,1e4,replace=TRUE, p=c(0.99,rep(0.001,10)))
x <- as.matrix(Matrix(rand_vals,ncol=5))
cores <- 2
vars_vector <- rowVars_fast(x, cores)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.