samplesWith: Filter a datatable to only samples with certain metadata...

View source: R/samplesWith.R

samplesWithR Documentation

Filter a datatable to only samples with certain metadata characteristics

Description

Filter a datatable to only samples with certain metadata characteristics

Usage

samplesWith(data, id_cols, complete = NULL, filter = NULL)

Arguments

data

Data table with metadata

id_cols

Vector of names of columns that uniquely identify subjects

complete

Get samples with all instances (complete cases) of this variable in the metadata

filter

(Optional) Vector of names of columns that each subject must have all of

Value

Data table with just the samples identified by "id_cols" that have all the values in filter


microresearcher/MicroVis documentation built on Feb. 8, 2024, 10:59 a.m.