slice.SummarizedExperiment: Choose rows by position

View source: R/dplyr.R

slice.SummarizedExperimentR Documentation

Choose rows by position

Description

Choose rows by their ordinal position in the se

Usage

## S3 method for class 'SummarizedExperiment'
slice(.data, axis, ...)

Arguments

.data

SummarizedExperiment to subset

axis

The axis to perform the operation on. Either row or col.

...

Integer row values. Provide either positive values to keep, or negative values to drop. The values provided must be either all positive or all negative. Indices beyond the number of rows in the input are silently ignored.

The arguments in ... are automatically quoted and evaluated in the context of the data frame. They support unquoting and splicing. See vignette("programming") for an introduction to these concepts.

Value

A SummarizedExperiment after the slice operation

Examples

#subset the first 10 cols of the se
data(seq_se)
seq_se %>% slice(col, 1:10)

martijnvanattekum/cleanse documentation built on Nov. 20, 2023, 8:28 p.m.