Learn R Programming

MultiDataSet (version 1.0.2)

checkSamples: Modify a MethylationSet to only contain common samples

Description

This function removes samples that have beta values but no phenotypes and vice versa. If snps object is present, only samples present in the three set are retained.

Usage

checkSamples(object)

Arguments

object
MethylationSet

Value

MethylationSet containing the common samples.

Examples

Run this code
if (require(MEALData)){
 betavals <- betavals[1:100, ]  ## To speed up the example, the beta values are reduced
 methy <- prepareMethylationSet(betavals, pheno)
 checkSamples(methy)
}

Run the code above in your browser using DataLab