Nothing
"kill.pc"<-function(g,pc,imputeknn=F,center=T){
if(is(g,"matrix")==FALSE){stop("g is not a matrix")}
if(!is.numeric(pc)){stop("pc is not numeric")}
if(any(pc>ncol(g))){stop("one element of pc is larger than ncol(g)")}
if(any(pc>nrow(g))){stop("one element of pc is larger than nrow(g)")}
if (imputeknn==T){
gimpute<-impute.knn(g)
g<-gimpute$data
}
if(center==T){s<-svd(g-rowMeans(g))}
if(center==F){s<-svd(g)}
D <- diag(s$d)
for (i in 1:length(pc)){
D[pc[i],pc[i]]<-0 }
g3<-s$u %*% D %*% t(s$v)
dimnames(g3)<-dimnames(g)
return(g3)
}
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.