R/kmspace.R

Defines functions kmspace

Documented in kmspace

#' Convert a binary matrix to a \code{kmspace} object
#'
#' \code{kmspace()} returns a \code{kmspace} object for a binary matrix.
#'
#' @param x Binary matrix representing a family of sets
#' @return \code{kmspace} object
#'
#' @examples
#' m <- as.matrix(c(1,0,0,0,1,0,1,1,1), nrow=3, byrow=TRUE)
#' kmspace(m)
#'
#' @family Constructors
#'
#' @export
kmspace <- function(x) {
  kmunionclosure(kmstructure(x))
}

Try the kstMatrix package in your browser

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

kstMatrix documentation built on Dec. 18, 2025, 5:07 p.m.