Bimap-toTable         package:AnnotationDbi         R Documentation

_M_e_t_h_o_d_s _f_o_r _e_x_t_r_a_c_t_i_n_g _d_a_t_a _f_r_o_m _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 can be used to extract data from a Bimap object.

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

       ## Extract the data (undirected methods)
       toTable(x)
       head(x, ...)
       tail(x, ...)
       links(x)

       ## Some basic counting on the data without actually extracting them (undirected methods)
       nrow(x)
       #dim(x)
       count.links(x)
       nhit(x)

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

       x: A Bimap object (or a list or an environment for 'nhit'). 

     ...: Further arguments to be passed to or from other methods (see
          'head' or 'tail' for the details). 

_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:

       library(GO.db)
       x <- GOSYNONYM
       x
       toTable(x)[1:4, ]
       toTable(x["GO:0007322"])
       links(x)[1:4, ]
       links(x["GO:0007322"])

       nrow(x)
       dim(x)
       count.links(x)

       y <- GOBPCHILDREN
       nhy <- nhit(y) # 'nhy' is a named integer vector
       identical(names(nhy), keys(y)) # TRUE
       table(nhy)
       sum(nhy == 0) # number of GO IDs with no children
       names(nhy)[nhy == max(nhy)] # the GO ID(s) with the most direct children

       ## Some sanity check
       sum(nhy) == count.links(y) # TRUE

