R/subspace_cluster.R

#
subspace_cluster <- function(subspace,objects) {
  res <- list(subspace=subspace,objects=objects)
  class(res) <- append(class(res),"subspace_cluster")
  return(res)
}
#'@export
print.subspace_cluster <- function(x,...) {
  cat("Subspace cluster generated by the package Subspace. 
      This cluster consists of",length(x$objects),"objects in a",length(which(x$subspace)),
      "dimensional subspace.")
}

Try the subspace package in your browser

Any scripts or data that you put into this service are public.

subspace documentation built on May 2, 2019, 11:11 a.m.