Learn R Programming

INSPEcT (version 1.2.2)

Extract: Extract Parts of an INSPEcT or an INSPEcT_model Object

Description

Operators acting on INSPEcT or INSPEcT_model objects to extract parts. INSPEcT_model objects can be subsetted only by gene. INSPEcT objects can be subsetted either by gene id or time point. In case of subsetting an INSPEcT object by time point, the model should be empty.

Usage

"["(x, i)
"["(x, i, j)

Arguments

x
An object of class INSPEcT or INSPEcT_model
i
A numeric, a vector of logicals or a vector of names indicating the features to be extracted
j
A numeric, a vector of logicals indicating the time points to be extracted

Value

An Object of class INSPEcT

See Also

removeModel

Examples

Run this code
data('mycerIds10', package='INSPEcT')
mycerIds_5genes <- mycerIds10[1:5]
## Not run: 
# ## This will turn out into an error:
# mycerIds_5genes_5tpts <- mycerIds10[1:5, 1:5]
# ## End(Not run)
## Before subsetting time points, the model should be removed:
mycerIds_5genes_5tpts <- removeModel(mycerIds10)[1:5, 1:5]

Run the code above in your browser using DataLab