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)

