subset.mudata: Subset a MuData object

View source: R/mudata_subset.R

subset.mudataR Documentation

Subset a MuData object

Description

This object uses standard evalutation to subset a mudata object using character vectors of datasets, params, and locations. The result is subsetted such that all rows in the data table are documented in the other tables (provided) they were to begin with. It is preferred to use select_locations, select_params, and select_datasets to subset a mudata object, or filter_data, filter_locations, filter_params, and filter_datasets to subset by row while maintaining internal consistency.

Usage

## S3 method for class 'mudata'
subset(x, ..., datasets = NULL, params = NULL, locations = NULL)

Arguments

x

The object to subset

...

Used to filter the data table

datasets

Vector of datasets to include

params

Vector of parameters to include

locations

Vector of locations to include

Value

A subsetted mudata object

See Also

select_locations, select_params, select_datasets, filter_data, filter_locations, filter_params, and filter_datasets

Examples

subset(kentvillegreenwood, params = c("mintemp", "maxtemp"))


paleolimbot/mudata documentation built on Oct. 3, 2023, 10:03 a.m.