Nothing
context("list-svd")
skip_on_cran()
skip_if_not_installed("modeltests")
library(modeltests)
mat <- scale(as.matrix(USJudgeRatings))
s <- svd(mat)
p <- prcomp(mat)
test_that("tidy_svd", {
check_arguments(tidy_svd)
tdu <- tidy(s, matrix = "u")
tdd <- tidy(s, matrix = "d")
tdv <- tidy(s, matrix = "v")
check_tidy_output(tdu)
check_tidy_output(tdd)
check_tidy_output(tdv, strict = FALSE)
check_dims(tdu, 516, 3)
check_dims(tdd, 12, 4)
check_dims(tdv, 144, 3)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.