Learn R Programming

chromConverter (version 0.12.0)

[.chrom_list: Subset a chrom_list object

Description

Extracts a subset of a chrom_list while preserving its class, so the result remains a chrom_list rather than a plain list. Of the list's own attributes, only warped, which chromatographR's correct_rt sets on aligned chromatograms, is kept, since a subset of aligned chromatograms is still aligned.

Usage

# S3 method for chrom_list
[(x, i, ...)

Value

A chrom_list containing the selected elements.

Arguments

x

A chrom_list object.

i

Indices specifying elements to extract.

...

Additional arguments passed to the default [ method.