otkvEnv2namedSparse        package:ontoTools        R Documentation

_o_b_t_a_i_n _s_p_a_r_s_e _m_a_t_r_i_x _r_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _k_e_y-_v_a_l_u_e _s_t_r_u_c_t_u_r_e_s

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

     obtain sparse matrix representation of key-value structures

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

     otkvEnv2namedSparse(obs, tms, otkvEnv)
     otkvList2namedSparse(obs, tms, otkvlist)

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

     obs: obs: vector of object tags

     tms: tms: vector of terms to which objects are mapped

 otkvEnv: otkvEnv: environment encoding the key-value mapping

otkvlist: otkvlist: list encoding the key-value mapping

_A_u_t_h_o_r(_s):

     Vince Carey <stvjc@channing.harvard.edu>

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

     otkvList2namedSparse(c("A","B","D","E"), letters[1:7], 
        list("A"=c("a","b"), "B"=c("b","d"),"E"="c"))

