hhead: Head function for SummarizedExperiment, data.frames and...

Description Usage Arguments Value Examples

View source: R/utils.R

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

1
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

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

hipathia documentation built on Nov. 8, 2020, 7:52 p.m.