replace_minimum_value_in_metric: Replace tidycyte metric values below threshold

Description Usage Arguments Value Examples

View source: R/replace_minimum_value_in_metric.R

Description

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

Usage

1
replace_minimum_value_in_metric(.df, .min, .replace, ...)

Arguments

.df

A data frame containing tidycyte data.

.min

A numeric value specifying the minimum Values are replaced if they are below 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_minimum_value_in_metric(3,0,Confluence,mAzalea,`h2-3`)

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