Subset$byRow {IdMappingAnalysis} | R Documentation |
Extract subset of columns from a data frame or a list of data frames by intersecting on a particular row. This function outputs a data frame which set of columns is a product of intersecting on a particular row of the imput data frame(s) columns with a given set of names (subset).
## Static method (use this): ## Subset$byRow(frameData, subset, row, verbose=FALSE, ...) ## Don't use the below: ## S3 method for class 'Subset' byRow(static, frameData, subset, row, verbose=FALSE, ...)
frameData |
Input |
subset |
|
row |
The row on which the intersection is to be performed. |
verbose |
|
... |
Not used |
A data.frame
or list of data frames which column set is a product of
intersecting of a particular row with a (partially intersecting) subset.
Alex Lisovich, Roger Day
For more information see Subset
.
#extract msms experiment subset containing only samples #for which the event count for Uniprot='P04264' takes predefined values 1,2 and 3 cnts<-c(1,2,3); subset.cnts<-Subset$byRow(examples$msmsExperimentSet[-1],cnts,row="P04264"); dim(subset.cnts);