hhead {hipathia} | R Documentation

## Head function for SummarizedExperiment, data.frames and matrix objects

### Description

Shows the first `n` rows and the first `n` columns of a matrix, in case the matrix has more than `n+5` rows or columns. Otherwise, it shows all the rows or columns, respectively.

### Usage

    hhead(mat, n = 5, sel_assay = 1)

### Arguments

`mat` | Object to be shown
`n` | Number of rows and columns
`sel_assay` | Character or integer, indicating the assay to be translated in the SummarizedExperiment. Default is 1.

### Value

Matrix with as much as `n` rows and `n` columns.

### Examples

    mat <- matrix(rnorm(100), ncol = 10)
    hhead(mat)
    hhead(mat, 3)
    hhead(mat, 7)

[Package hipathia version 1.0.0 Index]