Bimap-colmethods        package:AnnotationDbi        R Documentation

_M_e_t_h_o_d_s _f_o_r _m_a_n_i_p_u_l_a_t_i_n_g _t_h_e _c_o_l _n_a_m_e_s _o_f _a _B_i_m_a_p _o_b_j_e_c_t

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

     These methods are part of the Bimap interface.

     They are accessor methods that can be used to manipulate the
     column names of a Bimap object.

     Note that all the methods below: (1) are undirected Bimap methods
     (i.e. their result does NOT depend on the direction of the map)
     and (2) don't access the database.

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

       colnames(x, do.NULL=TRUE, prefix="col")
       colmetanames(x)
       Lkeyname(x)
       Rkeyname(x)
       keyname(x)
       tagname(x)
       Rattribnames(x)
       Rattribnames(x) <- value
       ncol(x)

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

       x: A Bimap object. 

 do.NULL: Ignored. 

  prefix: Ignored. 

   value: A character vector containing the new right-attribute names
          (must be a subset of the current right-attribute names) or
          NULL. 

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

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

     H. Pages

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

     Bimap, BimapFormatting, AnnDbBimap-envirAPI

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

       ## With the hgu95av2GO and hgu95av2GO2PROBE maps
       library(hgu95av2.db)
       x <- hgu95av2GO
       y <- hgu95av2GO2PROBE
       colnames(x)
       colnames(y)
       colmetanames(x)
       colmetanames(y)
       Lkeyname(x)
       Lkeyname(y)
       Rkeyname(x)
       Rkeyname(y)
       keyname(x)
       keyname(y)
       tagname(x)
       tagname(y)
       Rattribnames(x)
       Rattribnames(y)
       ncol(x)
       ncol(y)

       ## Changing the right attributes of the GOSYNONYM map
       library(GO.db)
       x <- GOSYNONYM
       class(x) # GOTermsAnnDbBimap
       as.list(x)[1:3]
       colnames(x)
       colmetanames(x)
       tagname(x) # untagged bimap
       Rattribnames(x)
       Rattribnames(x) <- Rattribnames(x)[3:1]
       colnames(x)
       class(x) # AnnDbBimap
       as.list(x)[1:3]

