replace_maximum_value_in_metric: Replace tidycyte metric values above threshold

Description Usage Arguments Value Examples

View source: R/replace_maximum_value_in_metric.R

Description

Replaces all values of a tidycyte metric above a specified threshold with a replacement value.

Usage

1
replace_maximum_value_in_metric(.df, .max, .replace, ...)

Arguments

.df

A data frame containing tidycyte data.

.max

A numeric value specifying the maximum. Values are replaced if they are over this value, but not if they are equal to this value.

.replace

A numeric replacement value

...

<data-masking> The masked names of the metrics to which replacement is applied.

Value

A dataframe with adjusted metrics

Examples

1
df %>% replace_maximum_value_in_metric(50,50,Confluence,mAzalea,`h2-3`)

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