Description Usage Arguments Details Value Author(s) Examples
View source: R/methods-AnnotatedDataFrame.R
Extract the first and last several elements of a vector for concise rendering; insert ellipses to indicate elided elements. This function is primarily meant for developer rather than end-user use.
1 | selectSome(obj, maxToShow=5)
|
obj |
A vector. |
maxToShow |
The number of elements (including "...") to render. |
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.
A string vector with at most maxToShow
plus 1 elements,
where an ellipsis ("...") is included to indicate incompleteness
of the excerpt.
Martin Morgan <mtmorgan@fhcrc.org>
1 | selectSome(1:20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.