Description Usage Arguments Value References Examples
This is a faster version of base R function var
. For
optimal speed, use integer = TRUE
if x
is an integer vector and
integer = FALSE
otherwise. Note that for long vectors the function
Var
in Rfast is typically much faster than var2
.
Also, this function uses a one-pass variance calculation that makes it
susceptible to precision issues if x
values are very large.
1 |
x |
Integer or numeric vector. |
integer |
Logical value for whether |
Numeric value.
Papadakis, M., Tsagris, M., Dimitriadis, M., Fafalios, S., Tsamardinos, I., Fasiolo, M., Borboudakis, G., Burkardt, J., Zou, C. and Lakiotaki, K. (2018) Rfast: A Collection of Efficient and Extremely Fast R Functions. R package version 1.8.8. https://CRAN.R-project.org/package=Rfast.
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.