group_from_metadata: Get a character vector of samples' groups from the input...

View source: R/tools.R

group_from_metadataR Documentation

Get a character vector of samples' groups from the input metadata file

Description

Get a character vector of samples' groups from the input metadata file

Usage

group_from_metadata(.by, .metadata, .sep = "; ")

Arguments

.by

Character vector. Specify a column or columns in the input metadata to group by.

.metadata

Metadata object.

.sep

Character vector. Defines a separator between groups if more than one group passed in .by.

Value

Character vector with group names.

Developer Examples

immunarch:::group_from_metadata("Status", data.frame(Status = c("A", "A", "B", "B", "C")))


immunomind/immunarch documentation built on March 20, 2024, 12:01 p.m.