Skip to contents

Collapses whitespace and strips trailing "Mutation"/"Mut" suffixes used by clinicians documenting variants in free text.

Usage

zhn_normalize_alteration(x)

Arguments

x

Character vector.

Value

Character vector the same length as x.

See also

Examples

zhn_normalize_alteration(c("TP53 Mutation", "  NRAS  Mut", "del(17p)"))
#> [1] "TP53"     "NRAS"     "del(17p)"