headtail: Return the first and last parts of an object

headtailR Documentation

Return the first and last parts of an object

Description

Applies to both rows and columns, enabling quick inspection during interactive use.

Usage

headtail(x, ...)

## S4 method for signature 'DFrame'
headtail(x, n = 2L)

## S4 method for signature 'GRanges'
headtail(x, n = 2L)

## S4 method for signature 'Matrix'
headtail(x, n = 2L)

## S4 method for signature 'SummarizedExperiment'
headtail(x, n = 2L)

Arguments

x

Object.

n

integer(1). Positive integer denoting the number of first and last items to include.

...

Additional arguments.

Details

Inspired by the print method for DataFrame class.

Value

character.

Functions

  • headtail(DFrame): Same method as data.frame.

  • headtail(GRanges): Summarize the ranges.

  • headtail(Matrix): Same method as matrix.

  • headtail(SummarizedExperiment): Summarize the primary assay.

Note

Updated 2023-09-20.

See Also

  • utils::head(), utils::tail().

  • cat().

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
headtail(object)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.