dim-methods: Dimensions of an Object

dimR Documentation

Dimensions of an Object

Description

Retrieve dimension of the result table in the gessResult, and feaResult objects

Usage

## S4 method for signature 'gessResult'
dim(x)

## S4 method for signature 'feaResult'
dim(x)

Arguments

x

an R object

Value

dim attribute of the result table

Examples

gr <- gessResult(result=dplyr::tibble(pert=letters[seq_len(10)], 
                                      val=seq_len(10)), 
                 query=list(up=c("g1","g2"), down=c("g3","g4")),
                 gess_method="LINCS", refdb="path/to/lincs/db")
dim(gr)
fr <- feaResult(result=dplyr::tibble(id=letters[seq_len(10)], 
                                     val=seq_len(10)),
                organism="human", ontology="MF", drugs=c("d1", "d2"), 
                targets=c("t1","t2"))
dim(fr)

yduan004/signatureSearch documentation built on Feb. 19, 2024, 9:30 a.m.