head: Return the First to Last Part of a Data Object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Retrieve the first or last parts of a DGEList, DGEExat, DGEGLM, DGELRT or TopTags object.

Usage

1
2
3
4
## S3 method for class 'DGEList'
head(x, n = 6L, ...)
## S3 method for class 'DGEList'
tail(x, n = 6L, ...)

Arguments

x

an object of class DGEList, DGEExact, DGEGLM, DGELRT or TopTags.

n

a single integer. If positive or zero, number rows of resulting object. If negative, all but the n last/first rows of x.

...

other arguments are not currently used.

Details

head (tail) returns the first (last) n rows when n >= 0 or all but the last (first) n rows when n < 0.

Value

An object like x but generally with fewer rows.

Author(s)

Gordon Smyth

See Also

head in the utils package or head.EList in the limma package.

Examples

1
2
3
4
5
6
Counts <- matrix(rpois(40,lambda=10),20,2)
rownames(Counts) <- paste0("Gene",1:20)
colnames(Counts) <- c("A","B")
y <- DGEList(Counts)
head(y)
tail(y)

hiraksarkar/edgeR_fork documentation built on Dec. 20, 2021, 3:52 p.m.