selectSome              package:Biobase              R Documentation

_E_x_t_r_a_c_t _e_l_e_m_e_n_t_s _o_f _a _v_e_c_t_o_r _f_o_r _c_o_n_c_i_s_e _r_e_n_d_e_r_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     Extract the first and last several elements of a vector for
     concise rendering; insert elipses to indiciated elided elements.
     This function is primarily meant for developer rather than
     end-user use.

_U_s_a_g_e:

     selectSome(obj, maxToShow=5)

_A_r_g_u_m_e_n_t_s:

     obj: A vector.

maxToShow: The number of elements (including "...") to render.

_D_e_t_a_i_l_s:

     This function can be used in 'show' methods to give users
     exemplars of the tokens used in a vector.  For example, an
     'ExpressionSet' built from a yeast experiment might have features
     enumerated using systematic gene names (e.g., YPR181C) or standard
     gene names (e.g., SEC23).  The 'show' method for 'ExpressionSet'
     uses 'selectSome' to alert the user to the tokens used, and
     thereby to indicate what vocabulary must be understood to work
     with the feature names.

_V_a_l_u_e:

     A string vector with at most 'maxToShow' plus 1 elements, where an
     ellipsis ("...") is included to indicate incompleteness of the
     excerpt.

_A_u_t_h_o_r(_s):

     Martin Morgan <mtmorgan@fhcrc.org>

_E_x_a_m_p_l_e_s:

     selectSome(1:20)

