Learn R Programming

relations (version 0.6-6)

properties: Relation Properties

Description

Retrieve relation properties.

Usage

relation_properties(x)
relation_property(x, which)

Arguments

x

A relation.

which

Property name (character string).

Details

These functions are used for the extrinsic properties of relations. Others can be retrieved using the predicate functions.

See Also

relation and, e.g., relation_is_binary for all predicate functions defined on relations.

Examples

Run this code
# NOT RUN {
x <- as.relation(1 : 3)
relation_properties(x)
relation_property(x, "is_endorelation")
# }
# NOT RUN {
<!-- % relation_property(x, "is_linear_order") -->
# }
# NOT RUN {
<!-- % relation_property(x, "is_linear_order") <- relation_is_linear_order(x) -->
# }
# NOT RUN {
<!-- % relation_property(x, "is_linear_order") -->
# }

Run the code above in your browser using DataLab