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

