Description Usage Arguments Value Author(s) See Also Examples
This function extracts a stratified sample of an MSnSet
.
1 | sampleMSnSet(object, fcol = "markers", size = 0.2, seed)
|
object |
An instance of class |
fcol |
The feature meta-data column name containing the
marker (vector or matrix) definitions on which the MSnSet will be
stratified. Default is |
size |
The size of the stratified sample to be extracted. Default is 0.2 (20 percent). |
seed |
The optional random number generator seed. |
A stratified sample (according to the defined fcol
)
which is an instance of class "MSnSet"
.
Lisa Breckels
testMSnSet
unknownMSnSet
markerMSnSet
. See markers
for details
about markers encoding.
1 2 3 4 5 6 7 | library(pRolocdata)
data(tan2009r1)
dim(tan2009r1)
smp <- sampleMSnSet(tan2009r1, fcol = "markers")
dim(smp)
getMarkers(tan2009r1)
getMarkers(smp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.