harmonize: Harmonize Case

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Convert text to the most occuring case. In case of ties, the first occurence in sorted order will be taken.

Usage

1

Arguments

x

character vector

Value

character vector with harmonized names (i.e., same case)

Examples

1
2
3
x <- c("FOO", "Foo", "bar", "FOO", "bar", "FOO", "Bar")
 y <- BEQI2:::harmonize(x)
 stopifnot(all.equal(y, c("FOO", "FOO", "bar", "FOO", "bar", "FOO", "bar")))

BEQI2 documentation built on May 2, 2019, 8:19 a.m.