These two functions are fast C++ versions for column- and row-wise
variance calculation on matrices/data.frames and are meant to substitute the classical
apply(mat, 1, var) approach.
a matrix or data.frame
They are coded in a way that they automatically remove
NA values, so they behave like
na.rm = TRUE.
A vector with the variance values.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.