subset.Dataset: Subset samples from a Dataset object.

View source: R/subset.Dataset.r

subset.DatasetR Documentation

Subset samples from a Dataset object.

Description

Takes a Dataset object and a logical expression and returns a Dataset with only the samples that meet the logical expression criteria

Usage

## S3 method for class 'Dataset'
subset(x, subset, drop = FALSE, clean = FALSE)

Arguments

x

A Dataset object.

subset

Expression indicating samples to subset. See subset in subset

drop

Logical indicating whether to drop variable levels that disappear.

clean

Logical indicating whether to use the clean function on the resulting dataset prior to returning it.

Details

If the logical expression evaluation returns an NA value, it is considered equivalent to FALSE

Value

A Dataset object

Author(s)

Sur from Dangl Lab


surh/AMOR documentation built on Feb. 21, 2023, 6:31 a.m.