incidence {relations}R Documentation

Relation Incidences

Description

Determine the incidences of a relation.

Usage

relation_incidence(x)

Arguments

x an object inheriting from class relation.

Value

For a k-ary relation, a k-dimensional 0/1 array inherting from class relation_incidence whose elements indicate whether the corresponding k-tuples are contained in the relation or not.

See Also

relation; relation_incidence<- for modifying the incidences.

Examples

R <- as.relation(c(A = 1, B = 2, C = 3))
relation_incidence(R)

[Package relations version 0.2-0 Index]