dimension <- dim(data)
vars <- do.call(rbind, lapply(split(as.data.frame(data), as.data.frame(factors)), var))
variances <- array(t(vars), c(dimension, dimension, length(levels(as.factor(factors)))))
Any scripts or data that you put into this service are public.
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.