group_samples: Group samples by covariate value.

group_samplesR Documentation

Group samples by covariate value.

Description

*Legacy function* No longer in use, but kept for possible general utility.

Usage

group_samples(covariates)

Arguments

covariates

A dataframe with different factor variables. Like the sample_to_covariates table of a sleuth object. Each row is a sample, each column is a covariate, each cell is a covariate value for the sample.

Details

Converts a table where each row is a sample and each column a variable into a lookup structure that matches each value of each variable to a vector of corresponding samples.

Value

list of lists (per covariate) of vectors (per factor level).


bartongroup/RATS documentation built on June 8, 2022, 12:40 a.m.