stdType              package:tkWidgets              R Documentation

_P_r_o_v_i_d_e _D_e_f_a_u_l_t _B_e_h_a_v_i_o_r _f_o_r _l_i_s_t_S_e_l_e_c_t _H_e_l_p_e_r _F_u_n_c_t_i_o_n_s

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

     The function 'listSelect' takes two functions which define how the
     type information and content of R objects will be shown on the
     widget created by 'listSelect'. Functions 'stdType()' and
     'stdView()' provide the default behavior.

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

     stdType(toCheck)
     stdView(toView)

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

toCheck, toView: arbitrary R object.

_D_e_t_a_i_l_s:

     These functions can be viewed as exmaples of defining functions
     for the 'typeFun' and 'valueFun' arguments of the 'listSelect'
     function.

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

     'stdType()' returns a character string describing the type of the
     R object.

     'stdView()'

_N_o_t_e:

     These functions are part of the Bioconductor project at
     Dana-Farber Cancer Institute to provide Bioinformatics
     functionalities through R

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

     Jianhua Zhang

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

     'listSelect'

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

     stdType(123)
     stdType("What am I")

     str(mydf <- data.frame(x = 2:8, ch = letters[1:7]))
     stdType(mydf)# "list"
     stdType(stdType)

     if(interactive()) {## stdView() needs UI:
       stdView(1:10)
       stdView(mydf)
      }

