join_samples: Filters the samples down in a dataset to ones specified

View source: R/samples.R

join_samplesR Documentation

Filters the samples down in a dataset to ones specified

Description

Tables like expression and sample_covariate house different datapoints per sample, and we often want to only retreive data points over a subset of samples.

Usage

join_samples(x, samples = NULL, semi = FALSE, distinct.samples = FALSE)

Arguments

x

likely a tbl_sqlite object, but a tbl_df-like object should work as well.

samples

a sample descriptor tbl_df-like object (likely a tbl_sqlite object) that has "dataset" and "samle_id" columns.

semi

if TRUE, appropximates a semi-join on the samples, otherwise does an inner_join between x and samples (default FALSE).

Value

joined result between x and samples


facileverse/FacileData documentation built on Feb. 24, 2024, 7:59 a.m.