pca_align <- function(configuration = NULL) {
results <- NULL #return NULL if no data
if(!is.null(configuration)) {
results <- scale(configuration, scale=F)%*%eigen(var(configuration))$vectors
}
return(results)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.