domain               package:relations               R Documentation

_R_e_l_a_t_i_o_n _D_o_m_a_i_n, _A_r_i_t_y, _a_n_d _S_i_z_e

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

       x: an R object inheriting from class 'relation' or
          'relation_ensemble'.

_V_a_l_u_e:

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

_S_e_e _A_l_s_o:

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

_E_x_a_m_p_l_e_s:

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

