Nothing
psdcor <- function(m, method = c("higham", "eigen"), ...) {
method <- match.arg(method)
m <- as.matrix(m)
if (length(m) <= 1) {
ret <- m
} else {
ret <- switch(method,
eigen = {
sfsmisc::posdefify(m, ...)
},
higham = {
sfsmisc::nearcor(m, ...)$cor
# require(Matrix);
# as.matrix(nearPD(m, corr=TRUE, ...)$mat)
}
)
}
ret
}
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.