headtail: Return the first and last parts of an object

Description Usage Arguments Details Value Functions Note See Also Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
headtail(x, ...)

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

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

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

## S4 method for signature 'data.frame'
headtail(x, n = 2L)

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

## S4 method for signature 'GRanges'
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 objects.

Value

Invisible NULL.

Functions

Note

Updated 2020-05-11.

See Also

Examples

1
2
3
4
5
6
7
8
9
data(mtcars, package = "datasets")
data(RangedSummarizedExperiment, package = "acidtest")
rse <- RangedSummarizedExperiment

## data.frame ====
headtail(mtcars)

## SummarizedExperiment ====
headtail(rse)

acidgenomics/basejump documentation built on Aug. 8, 2020, 2:11 a.m.