tail-methods: Return the Last Part of an Object

tailR Documentation

Return the Last Part of an Object

Description

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

Usage

## 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

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)

girke-lab/signatureSearch documentation built on Feb. 21, 2024, 8:32 a.m.