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

headtail(x, ...)

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

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

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

# S4 method for 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.

Value

Invisible NULL.

Details

Inspired by the print() method for DataFrame class objects.

Functions

  • headtail,DataFrame-method: Same method as data.frame.

  • headtail,Matrix-method: Same method as matrix.

  • headtail,GRanges-method: Summarize the ranges.

  • headtail,SummarizedExperiment-method: Summarize the primary assay.

Note

Updated 2020-10-07.

See also

Examples

data(RangedSummarizedExperiment, package = "AcidTest") ## SummarizedExperiment ==== object <- RangedSummarizedExperiment headtail(object)
#> sample01 sample02 ... sample11 sample12 #> gene001 58 26 ... 26 41 #> gene002 14 20 ... 0 7 #> ... ... ... ... ... ... #> gene499 6 27 ... 4 8 #> gene500 102 64 ... 79 64