byColumn.Subset: # Extract subset of rows from a data frame or a list of data...

Description Usage Arguments Value Author(s) See Also Examples

Description

# Extract subset of rows from a data frame or a list of data frames by intersecting on a particular column. This function outputs a data frame which set of rows is a product of intersecting on a particular column of the imput data frame(s) rows with a given set of names (subset).

Usage

1
2
3
4
5
6
## Static method (use this):
## Subset$byColumn(frameData, subset, column, verbose=FALSE, ...)

## Don't use the below:
## S3 method for class 'Subset'
byColumn(static, frameData, subset, column, verbose=FALSE, ...)

Arguments

frameData

Input data.frame or a list of data frames.

subset

character vector of names partially intersecting with given data.frame column and defining the set on which merging is to be performed.

column

The column on which the intersection is to be performed.

verbose

If TRUE enables diagnostic messages. Default is FALSE.

...

Not used

Value

A data.frame or list of data frames which row set is a product of intersecting of a particular column with a (partially intersecting) subset.

Author(s)

Alex Lisovich, Roger Day

See Also

For more information see Subset.

Examples

1
2
3
4
5
6
 commonSamples<-intersect(colnames(examples$msmsExperimentSet),
		colnames(examples$msmsExperimentSet));
 mrna.subset<-Subset$byColNames(examples$mrnaExperimentSet,
		commonSamples,column=1);
 mrna.subset[1:10,1:5];
 

IdMappingAnalysis documentation built on Oct. 31, 2019, 3:30 a.m.