Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

independent

Independence of the sets


Description

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

Usage

independent(object, sets)

Arguments

object

A TidySet object.

sets

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

Value

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

Examples

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"))

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.