R: Relation Domain, Arity, and Size

domain {relations} | R Documentation

## Relation Domain, Arity, and Size

### Description

Determine the domain, domain names, arity, or size of a relation or a relation ensemble.

### Usage

    relation_arity(x)
    relation_domain(x)
    relation_domain_names(x)
    relation_size(x)

### Arguments

`x` | an R object inheriting from class `relation` or `relation_ensemble`.

### Value

For determining the domain, an object of class `relation_domain`, inheriting from `tuple`.

### See Also

`tuple()`; `relation()`; `relation_domain<-()` and `relation_domain_names<-()` for modifying the domain and domain names of a relation, respectively.

### Examples

    ## A simple relation:
    R <- as.relation(c(A = 1, B = 2, C = 3))
    relation_incidence(R)
    relation_arity(R)
    relation_domain(R)
    relation_domain_names(R)
    relation_size(R)

[Package relations version 0.6-7 Index]