Learn R Programming

methylKit (version 0.9.5)

select: selects rows from of methylKit objects

Description

The function returns a subset of data contained in the methylKit objects.

Usage

select(x,i)

Arguments

i

a numeric or logical vector. This vector corresponds to bases or regions contained in methylKit objects.The vector is used to subset the data.

Value

a methylBase,methylRaw or methylDiff object depending on the input object.

Examples

Run this code
# NOT RUN {
data(methylKit)
 # selects first hundred rows, returns a methylRaw object
subset1=select(methylRawList.obj[[1]],1:100)

# selects first hundred rows, returns a methylBase object
subset2=select(methylBase.obj,1:100)

# selects first hundred rows, returns a methylDiff object
subset3=select(methylDiff.obj,1:100)
# }

Run the code above in your browser using DataLab