normalize_by_metric: Normalize tidycyte metrics by other specified metrics

Description Usage Arguments Value Examples

View source: R/normalize_by_metric.R

Description

Normalizes all metrics based on the arrangement of the tidycyte metadata table. The metadata table is expected to have a column named "metric" referring to each metric name, and a column named "metric_norm" that contains on each row the name of another metric for normalization or, if no normalization is desired for that metric, some other value that does not correspond to a metric name (e.g. NA, NULL, or empty).

Usage

1
normalize_by_metric(df, .metadata)

Arguments

.metadata

A data frame containing tidycyte metadata

.df

A data frame containing tidycyte data.

Value

A data frame with normalized metrics

Examples

1
df %>% normalize_by_metric(metadata)

hodgeslab/tidycyte documentation built on Dec. 20, 2021, 4:47 p.m.