tail-methods: Return the Last Part of an Object

Description Usage Arguments Value Examples

Description

Return the last part of the result table in the gessResult, and feaResult objects

Usage

1
2
3
4
5
## S4 method for signature 'gessResult'
tail(x, n = 6L, ...)

## S4 method for signature 'feaResult'
tail(x, n = 6L, ...)

Arguments

x

an object

n

a single integer. If positive or zero, size for the resulting object is the number of rows for a data frame. If negative, all but the n first number of rows of x.

...

arguments to be passed to or from other methods

Value

data.frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")
tail(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"))
tail(fr)

signatureSearch documentation built on April 16, 2021, 6 p.m.