combinepmp <-
function(Xp, xmp)
{
# combine a subspace with one element belonging to the remaining space
if (length(Xp) ==0) return (xmp) else
{
xmp <- as.matrix(xmp)
Xmp <- matrix( xmp, nrow(Xp), length(xmp), byrow=TRUE, dimnames=list(NULL, colnames(xmp)))
X <- cbind(Xp, Xmp)
X <- X[, order(colnames(X))]
X
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.