replaceGreekSyms: Replace Greek symbols or symbol names

View source: R/replaceGreekSyms.R

replaceGreekSymsR Documentation

Replace Greek symbols or symbol names

Description

Replace Greek symbols with either single letter or word. Note that this only replaces greek symbols I have encountered so far in antibody names to avoid introducing errors by e.g. replacing "mu" in "immunoglobin".

Usage

replaceGreekSyms(x, replace = c("sym2letter", "sym2word", "word2letter"))

Arguments

x

Character vector (n) containing Greek symbols to be replaced.

replace

Either "sym2letter" (replace Greek symbols with single lowercase letter) or "sym2word" (replace Greek symbols with lowercase word, e.g. "alpha") or "word2letter" (replace lowercase Greek symbol names with single lowercase letters e.g. "alpha" to "a")

Value

Character vector (n) with Greek symbols or names replaced


HelenLindsay/AbNames documentation built on June 6, 2023, 1:18 p.m.