Learn R Programming

BaseSet (version 0.9.0)

independent: Independence of the sets

Description

Checks if the elements of the sets are present in more than one set.

Usage

independent(object, sets)

Value

A logical value indicating if the sets are independent (TRUE) or not.

Arguments

object

A TidySet object.

sets

A character vector with the names of the sets to analyze.

Examples

Run this code
x <- list("A" = letters[1:5], "B" = letters[3:7], "C" = letters[6:10])
TS <- tidySet(x)
independent(TS)
independent(TS, c("A", "B"))
independent(TS, c("A", "C"))
independent(TS, c("B", "C"))

Run the code above in your browser using DataLab