normalize_by_time: Normalize tidycyte metrics by specified time points

Description Usage Arguments Value Examples

View source: R/normalize_by_time.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 "time_norm" that contains on each row the elapsed time to be used for normalization or, if no normalization is desired for that metric, some other value that does not correspond to an elapsed time value (e.g. NA, NULL, or empty).

Usage

1
normalize_by_time(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_time(metadata)

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