test_that("PCA Comparison time", {
set.seed(1)
N <- 1e4
M <- 1e3
X <- matrix(rnorm(N*M), M)
system.time(prcomp(X))
system.time(qrprcomp(X))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.