Learn R Programming

BEQI2 (version 1.0-0)

harmonize: Harmonize Case

Description

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

Usage

harmonize(x)

Arguments

Value

character vector with harmonized names

Examples

Run this code
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")))

Run the code above in your browser using DataLab