head {signatureSearch} | R Documentation

## Return the First Part of an Object

### Description

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

### Usage

    ## S4 method for signature 'gessResult'
    head(x, n = 6L, ...)

    ## S4 method for signature 'feaResult'
    head(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 last 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")
    head(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"))
    head(fr)

[Package signatureSearch version 1.8.2 Index]