subset,LongTable-method | R Documentation |
Allows use of the colData and rowData data.table
objects to query based on
rowID and colID, which is then used to subset all assay data.table
s stored
in the assays
slot.
This function is endomorphic, it always returns a LongTable object.
## S4 method for signature 'LongTable'
subset(x, i, j, assays = assayNames(x), reindex = TRUE)
x |
|
i |
|
j |
|
assays |
|
reindex |
|
LongTable
A new LongTable
object subset based on the specified
parameters.
# Character
subset(merckLongTable, 'ABT-888', 'CAOV3')
# Numeric
subset(merckLongTable, 1, c(1, 2))
# Logical
subset(merckLongTable, , colData(merckLongTable)$sampleid == 'A2058')
# Call
subset(merckLongTable, drug1id == 'Dasatinib' & drug2id != '5-FU',
sampleid == 'A2058')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.