Learn R Programming

assertive.sets

A set of predicates and assertions for checking the properties of sets. Most of the documentation is on the assertive page. End-users will usually want to use assertive directly.

Installation

To install the stable version, type:

install.packages("assertive.sets")

To install the development version, you first need the devtools package.

install.packages("devtools")

Then you can install the assertive.sets package using

library(devtools)
install_bitbucket("richierocks/assertive.sets")

Predicates

is_set_equal checks if two vectors contain the same elements (maybe in different orders).

is_subset and is_superset check if one set is contained in another.

Assertions

Predicates all return a single logical value and have one corresponding assertion. For example, is_subset has assert_is_subset.

Copy Link

Version

Install

install.packages('assertive.sets')

Monthly Downloads

102

Version

0.0-3

License

GPL (>= 3)

Maintainer

Last Published

December 30th, 2016

Functions in assertive.sets (0.0-3)

assert_are_disjoint_sets

Set comparisons